weird behaviour of "0 in [] is False"

Laszlo Zsolt Nagy gandalf at geochemsource.com
Tue Nov 30 15:15:27 CET 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