Python 3 __cmp__ semantic change?

Terry Reedy tjreedy at udel.edu
Sun Nov 23 19:23:39 CET 2008


George Sakkis wrote:
> 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.

http://bugs.python.org/issue4395

ps to Arnaud: upgrade to rc3, which has bug fixes and many doc changes.




More information about the Python-list mailing list