Python 3 __cmp__ semantic change?

George Sakkis george.sakkis at gmail.com
Sun Nov 23 10:16:19 EST 2008


On Nov 23, 6:14 am, Arnaud Delobelle <arno... at googlemail.com> wrote:

> So how did I get it into my head that defining __eq__ would create the
> correct behaviour for __ne__ automatically?  And more puzzlingly, how
> come it is what actually happens?  Which should I believe: the
> documentation or the implementation?

According to Guido, the implementation:
http://mail.python.org/pipermail/python-ideas/2008-October/002235.html.

George





More information about the Python-list mailing list