Mark Dickinson <dicki...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8748>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to