[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:16:47 -0700


Bugs item #775836, was opened at 2003-07-22 15:43
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775836&group_id=5470

Category: Documentation
>Group: Python 2.4
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: Fred L. Drake, Jr. (fdrake)
Date: 2003-07-22 16:16

Message:
Logged In: YES 
user_id=3066

It'll have to wait for 2.3.1/2.4.  We've done (more than)
enough at this point.

----------------------------------------------------------------------

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