[issue9930] Incorrect semantics of __radd__ method for builtin types

Mark Dickinson report at bugs.python.org
Thu Sep 23 21:50:26 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

It looks like Mark is right:  the wrap_binaryfunc_r subtype check should just be removed.  The corresponding check in 2.x only occurs for types which don't have the Py_TPFLAGS_CHECKTYPES flag set.  As of 2.7, *all* of the numeric types have this flag set (in 2.6, the complex type doesn't).

I'm not seeing any (relevant) test failures here after removing the check.
Actually, I'm not seeing any test failures at all.  Hooray!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9930>
_______________________________________


More information about the Python-bugs-list mailing list