mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
bpo-39573: Use Py_IS_TYPE to check for types (GH-19882)
This commit is contained in:
parent
846d8b28ab
commit
5e8ffe1477
2 changed files with 3 additions and 3 deletions
|
|
@ -6306,7 +6306,7 @@ FUNCNAME(PyObject *self, PyObject *other) \
|
|||
stack[1] = other; \
|
||||
r = vectorcall_maybe(tstate, &op_id, stack, 2); \
|
||||
if (r != Py_NotImplemented || \
|
||||
Py_TYPE(other) == Py_TYPE(self)) \
|
||||
Py_IS_TYPE(other, Py_TYPE(self))) \
|
||||
return r; \
|
||||
Py_DECREF(r); \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue