[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 12:43:58 -0700
Bugs item #775836, was opened at 2003-07-22 13:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Nobody/Anonymous (nobody)
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
>>>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775836&group_id=5470