mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase. Closes SF bug #643260.
This commit is contained in:
parent
f9229d98ae
commit
c2e095f6f4
2 changed files with 6 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ ternary_op(PyObject *v,
|
|||
if (mv != NULL && NEW_STYLE_NUMBER(v))
|
||||
slotv = NB_TERNOP(mv, op_slot);
|
||||
if (w->ob_type != v->ob_type &&
|
||||
mv != NULL && NEW_STYLE_NUMBER(w)) {
|
||||
mw != NULL && NEW_STYLE_NUMBER(w)) {
|
||||
slotw = NB_TERNOP(mw, op_slot);
|
||||
if (slotw == slotv)
|
||||
slotw = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue