Proposal: === and !=== operators

Torsten Bronger bronger at physik.rwth-aachen.de
Sat Jul 12 08:14:24 CEST 2014


Hallöchen!

Torsten Bronger writes:

> Alan Bawden writes:
>
>> [...]
>>
>> You lost me right here.  If list equality is determined by
>> comparing lists element-by-element, and the second element of old
>> is _not_ equal to the second element of data, then why should old
>> and data be equal?
>
> I think Python first tests for identity, and falls back to
> equality (or the other way round).  This behaviour is questionable
> in my opinion.

See also
https://mail.python.org/pipermail/python-bugs-list/2006-August/035010.html

Tschö,
Torsten.

-- 
Torsten Bronger    Jabber ID: torsten.bronger at jabber.rwth-aachen.de
                                  or http://bronger-jmp.appspot.com



More information about the Python-list mailing list