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.dickinson, meador.inge
Date 2010-05-21.15:13:59
SpamBayes Score 0.013053941
Marked as misclassified No
Message-id <1274454841.43.0.85273980696.issue8748@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm.  The current Python 2.7 behaviour really is a mess.

Your patch removes the coercion entirely;  I'm not sure that's a good idea:  mightn't this change behaviour for user-defined classes with a __coerce__ method?  Maybe it would be better to just special-case ints and longs at the start of complex_richcompare, and then leave everything else more-or-less intact?

I'm beginning to wonder whether it's actually worth fixing this at all in 2.7.
History
Date User Action Args
2010-05-21 15:14:01mark.dickinsonsetrecipients: + mark.dickinson, meador.inge
2010-05-21 15:14:01mark.dickinsonsetmessageid: <1274454841.43.0.85273980696.issue8748@psf.upfronthosting.co.za>
2010-05-21 15:14:00mark.dickinsonlinkissue8748 messages
2010-05-21 15:13:59mark.dickinsoncreate