weird behaviour of "0 in [] is False"

Laszlo Zsolt Nagy gandalf at
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?



mailto:gandalf at

More information about the Python-list mailing list