Georg Brandl <ge...@python.org> added the comment:

This is indeed weird.  PyNumber_Add ends up calling compare_add with the float 
as its first argument, which is impossible to do from Python.  And the 
wrap_binaryfunc_r check for subtypes means that compare.__radd__ claims it 
doesn't support floats either.  So from Python, it's impossible to add floats 
and complex numbers via __special__ methods :)

Maybe Mark wants to shed some light?

----------
nosy: +georg.brandl

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9930>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to