This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Mark.Shannon, georg.brandl, mark.dickinson, r.david.murray
Date 2010-09-23.19:23:01
SpamBayes Score 3.7359005e-14
Marked as misclassified No
Message-id <1285269783.74.0.176165179563.issue9930@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2010-09-23 19:23:03mark.dickinsonsetrecipients: + mark.dickinson, georg.brandl, r.david.murray, Mark.Shannon
2010-09-23 19:23:03mark.dickinsonsetmessageid: <1285269783.74.0.176165179563.issue9930@psf.upfronthosting.co.za>
2010-09-23 19:23:02mark.dickinsonlinkissue9930 messages
2010-09-23 19:23:01mark.dickinsoncreate