Message117221
If I understand correctly, the complaint is that (for example) in Python 3.x, we have:
Python 3.1.2 (r312:79147, Aug 20 2010, 20:06:00)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> float.__radd__(3.0, 1)
NotImplemented
while in Python 2.x:
Python 2.6.6 (r266:84292, Aug 28 2010, 18:05:46)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> float.__radd__(3.0, 1)
4.0
It's not clear to me whether there's any good reason for this change.
(I'm deliberately avoiding the original float + complex example, since complex is a little peculiar in 2.x for x <= 6 anyway---it's treated as an 'old-style' number (not to be confused with an old-style class)).
(Changing versions: 2.5 and 2.6 aren't getting bugfixes any more, and 2.7 appears to be behaving correctly.) |
|
Date |
User |
Action |
Args |
2010-09-23 19:23:03 | mark.dickinson | set | recipients:
+ mark.dickinson, georg.brandl, r.david.murray, Mark.Shannon |
2010-09-23 19:23:03 | mark.dickinson | set | messageid: <1285269783.74.0.176165179563.issue9930@psf.upfronthosting.co.za> |
2010-09-23 19:23:02 | mark.dickinson | link | issue9930 messages |
2010-09-23 19:23:01 | mark.dickinson | create | |
|