[issue9930] Incorrect semantics of __radd__ method for builtin types

Mark Dickinson report at bugs.python.org
Thu Sep 23 21:31:18 CEST 2010

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

> PyNumber_Add ends up calling compare_add with the float as its first
> argument, which is impossible to do from Python.

[Assuming you mean complex_add.]  I think this bit is expected, though.  complex_add (or float_add, or whatever) provides both the __add__ and __radd__ methods.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list