What happened to __cmp__() in Python 3.x?

Xavier Ho contact at xavierho.com
Sun Aug 16 07:58:35 EDT 2009


On Sun, Aug 16, 2009 at 9:49 PM, Mark Lawrence <breamoreboy at yahoo.co.uk>wrote:

>
> Unfortunately I don't think it's that easy, see.
> http://mail.python.org/pipermail/python-list/2008-November/688761.html
> The issue referenced is still open.  This of course assumes that I've
> posted the correct link this time!
>

I'm not sure what you're referring to here. The link brought me to about
__ne__ being automatically determined when __eq__ is defined. Although it is
a rich comparison special method, it doesn't entirely cover the usefulness
of __cmp__().

Terry: I'll give that a test tomorrow and see what I can come up with.
Thanks for the quick info.

Regards,

Ching-Yun "Xavier" Ho, Technical Artist

Contact Information
Mobile: (+61) 04 3335 4748
Skype ID: SpaXe85
Email: contact at xavierho.com
Website: http://xavierho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090816/147e57a8/attachment-0001.html>


More information about the Python-list mailing list