Bug in __contains__

Oleg Broytmann phd at phd.pp.ru
Wed Feb 28 04:30:49 EST 2001


Hello!

Python 2.0 (#1, Jan 26 2001, 15:34:20)
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> 10 in xrange(10)
1

   Is it a known bug?

Python 1.5.2 (#2, Dec 12 2000, 17:07:14)  [GCC 2.95.2 20000220 (Debian
GNU/Linux) on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> 10 in xrange(10)
0

   It was ok...

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