weird behaviour of "0 in [] is False"

Laszlo Zsolt Nagy gandalf at geochemsource.com
Tue Nov 30 09:15:27 EST 2004


>>>>>> (0 in l) is False
>>> True

This gives me the same exception.

>>> 0 in 1
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: iterable argument required

Did you really try these examples?


Best,

   Laci

mailto:gandalf at geochemsource.com
web:http://designasign.biz





More information about the Python-list mailing list