Are there any list comparison optimizations in Python?

Huaiyu Zhu huaiyu at gauss.almadan.ibm.com
Mon Nov 19 19:48:09 EST 2001


On Mon, 19 Nov 2001 21:58:20 +0000 (UTC), Marcin 'Qrczak' Kowalczyk
<qrczak at knm.org.pl> wrote: 
>Mon, 19 Nov 2001 20:07:42 +0000 (UTC), Huaiyu Zhu <huaiyu at gauss.almadan.ibm.com> pisze:
>
>> What would such examples look like?  I can only think of cases where the
>> problems are caused exactly by (a is b) and (a!=b) both being true.  They
>> would dissappear if (a is b) implies (a==b).
>
>They would be hidden, but the buggy implementation of == is still there.
>It probably incorrectly says "inequal" also for some a,b where a is not b
>but they should be equal.
>

I see the point now.  Interesting debugging technique.

Huaiyu



More information about the Python-list mailing list