Are there any list comparison optimizations in Python?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Mon Nov 19 16:58:20 EST 2001


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.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK



More information about the Python-list mailing list