is this a bug?
news
burkhard.kloss at kbcfp.com
Sun Jul 7 17:14:30 EDT 2002
Python 2.0 (#1, Feb 7 2001, 22:41:16)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "copyright", "credits" or "license" for more information.
>>> "aa" in ["aa", "ab"]
1
>>> "aa" in ["aa"]
1
>>> "aa" in ("aa")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'in <string>' requires character as left operand
Is this a bug, or should this be consistent between lists and tuples?
Puzzled.
More information about the Python-list
mailing list