[Python-bugs-list] [ python-Bugs-477215 ] 'in' and 'not in' won't work for dict
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 01 Nov 2001 09:57:16 -0800
Bugs item #477215, was opened at 2001-11-01 09:57
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477215&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kerim Borchaev (warkid)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'in' and 'not in' won't work for dict
Initial Comment:
In spite of what docs say.
(They say : "Equivalent to <not> a.has_key(k)")
but:
>>> 0 in {}
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
TypeError: 'in' or 'not in' needs sequence right argument
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477215&group_id=5470