Skip to content

Commit

Permalink
Revert change in binary_op1
Browse files Browse the repository at this point in the history
  • Loading branch information
itamaro committed Nov 3, 2021
1 parent 5105aef commit 2362bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ binary_op1(PyObject *v, PyObject *w, const int op_slot

if (slotv) {
PyObject *x;
if (slotw && PyObject_TypeCheck(w, Py_TYPE(v))) {
if (slotw && PyType_IsSubtype(Py_TYPE(w), Py_TYPE(v))) {
x = slotw(v, w);
if (x != Py_NotImplemented)
return x;
Expand Down

0 comments on commit 2362bf6

Please sign in to comment.