[issue4243] has_key doc could be clearer
Giampaolo Rodola'
report at bugs.python.org
Thu Oct 30 21:04:21 CET 2008
Giampaolo Rodola' <billiejoex at users.sourceforge.net> added the comment:
English is not my first language but it seems obvious to me that the
suggestion is using:
>>> key in dict
...instead of:
>>> dict.has_key(key)
The only thing which may be confusing is the dictionary which is first
called "dict" and then "d", in which case the following modification
should be made:
- dict.has_key(key) is equivalent to key in d, but deprecated.
+ dict.has_key(key) is equivalent to key in dict, but deprecated.
----------
nosy: +giampaolo.rodola
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4243>
_______________________________________
More information about the Python-bugs-list
mailing list