[Python-bugs-list] [ python-Bugs-775836 ] change 0,1 to False,True in dict.has_key doc
SourceForge.net
noreply@sourceforge.net
Tue, 22 Jul 2003 13:13:48 -0700
Bugs item #775836, was opened at 2003-07-22 15:43
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775836&group_id=5470
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Dalke (dalke)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: change 0,1 to False,True in dict.has_key doc
Initial Comment:
http://python.org/doc/2.3c1/lib/typesmapping.html
says in the table
a.has_key(k) | 1 if a has a key k, else 0
Under Python 2.3 this is True / False
>>> {1:2}.has_key(1)
True
>>> {1:2}.has_key(2)
False
>>>
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-07-22 16:13
Message:
Logged In: YES
user_id=33168
Fred, not sure if this should be fixed for 2.3 or wait.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775836&group_id=5470