Message106248
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. |
|
Date |
User |
Action |
Args |
2010-05-21 15:14:01 | mark.dickinson | set | recipients:
+ mark.dickinson, meador.inge |
2010-05-21 15:14:01 | mark.dickinson | set | messageid: <1274454841.43.0.85273980696.issue8748@psf.upfronthosting.co.za> |
2010-05-21 15:14:00 | mark.dickinson | link | issue8748 messages |
2010-05-21 15:13:59 | mark.dickinson | create | |
|