Bug in __contains__

Raymond Hettinger othello at javanet.com
Wed Feb 28 18:51:47 CET 2001


Oleg Broytmann wrote:

> 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?

How did you run across this bug?  I have never had reason to
check for membership in xrange().

Just curious.
Raymond




More information about the Python-list mailing list