Stefan Behnel added the comment:

Please use either of the following wordings in the documentation:

"""
If the key is not in the dict, it is inserted with value *defaultobj* and 
*defaultobj* is returned.
"""

or

"""
If the key is not in the dict, it is inserted with value *defaultobj*, which is 
then returned.
"""

Otherwise, the docs leave it open if anything at all is returned in the case of 
a lookup failure. (I initially wanted to make that clear with the 
PyDict_GetItem*() name, but since that was rejected, it's worth making up for 
in the docs.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to