Message117219
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? |
|
Date |
User |
Action |
Args |
2010-09-23 19:12:06 | georg.brandl | set | recipients:
+ georg.brandl, r.david.murray, Mark.Shannon |
2010-09-23 19:12:06 | georg.brandl | set | messageid: <1285269126.06.0.442755481312.issue9930@psf.upfronthosting.co.za> |
2010-09-23 19:12:04 | georg.brandl | link | issue9930 messages |
2010-09-23 19:12:03 | georg.brandl | create | |
|