[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 11:11:56 -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: Fred L. Drake, Jr. (fdrake)
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
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-11-01 11:11
Message:
Logged In: YES
user_id=31435
Which version of Python are you using? This doesn't work
in any released final version of Python -- it's a new-in-
2.2 feature (which hasn't been released yet).
Assigning to Fred because I seem to recall that the docs
for this snuck out early by mistake.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477215&group_id=5470