Proposal: === and !=== operators

Torsten Bronger bronger at physik.rwth-aachen.de
Sat Jul 12 02:05:19 EDT 2014


Hallöchen!

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.

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