Bug in __contains__

Oleg Broytmann phd at phd.pp.ru
Wed Feb 28 19:07:35 CET 2001


On Wed, 28 Feb 2001, Raymond Hettinger wrote:
> > >>> 10 in xrange(10)
> > 1
>
> How did you run across this bug?  I have never had reason to
> check for membership in xrange().

   A collegue asked me if it's a known bug :) While he wrote the Russian
translation of Python tutorials (http://nd.spb.ru/dialect/book.asp?ID=60) he
found some bugs in python 2.0. So expect some more questions from me. If he
found some unknow bugs either he or I will file bug reports.

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list