This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: change 0,1 to False,True in dict.has_key doc
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: dalke, fdrake, nnorwitz, rhettinger
Priority: normal Keywords:

Created on 2003-07-22 19:43 by dalke, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (5)
msg17238 - (view) Author: Andrew Dalke (dalke) * (Python committer) Date: 2003-07-22 19:43
 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
>>> 

msg17239 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-07-22 20:13
Logged In: YES 
user_id=33168

Fred, not sure if this should be fixed for 2.3 or wait.
msg17240 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2003-07-22 20:16
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.
msg17241 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-07-22 21:04
Logged In: YES 
user_id=80475

I'll fix it after Py2.3 is done.
msg17242 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-08-08 11:08
Logged In: YES 
user_id=80475

Fixed.
See Doc/lib/libstdtypes.tex 1.130 and 1.129.8.1
History
Date User Action Args
2022-04-10 16:10:08adminsetgithub: 38904
2003-07-22 19:43:47dalkecreate