Python 3 __cmp__ semantic change?
Arnaud Delobelle
arnodel at googlemail.com
Sun Nov 23 11:12:11 EST 2008
George Sakkis <george.sakkis at gmail.com> writes:
> 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
Ah thanks, I knew I must have had this idea from somewhere. I do
remember about this thread on python-ideas now.
--
Arnaud
More information about the Python-list
mailing list