[Python-bugs-list] [ python-Bugs-775836 ] change 0, 1 to False, True in dict.has_key doc

SourceForge.net noreply at sourceforge.net
Fri Aug 8 05:08:56 EDT 2003


Bugs item #775836, was opened at 2003-07-22 14:43
Message generated for change (Comment added) made by rhettinger
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrew Dalke (dalke)
Assigned to: Raymond Hettinger (rhettinger)
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: Raymond Hettinger (rhettinger)
Date: 2003-08-08 06:08

Message:
Logged In: YES 
user_id=80475

Fixed.
See Doc/lib/libstdtypes.tex 1.130 and 1.129.8.1

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-07-22 16:04

Message:
Logged In: YES 
user_id=80475

I'll fix it after Py2.3 is done.

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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-07-22 15: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 15: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



More information about the Python-bugs-list mailing list