weird behaviour of "0 in [] is False"

Laszlo Zsolt Nagy gandalf at geochemsource.com
Tue Nov 30 09:18:53 EST 2004


Tuesday, November 30, 2004, 3:15:27 PM, you wrote:
>>>>>>> (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

Sorry, It was 0 in l, not 0 in 1. :-)
My fault.

> Best,

>    Laci

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






More information about the Python-list mailing list