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.

Author scoder
Recipients benjamin.peterson, pitrou, python-dev, rhettinger, scoder
Date 2013-03-11.16:44:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363020286.07.0.374707709783.issue17327@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2013-03-11 16:44:46scodersetrecipients: + scoder, rhettinger, pitrou, benjamin.peterson, python-dev
2013-03-11 16:44:46scodersetmessageid: <1363020286.07.0.374707709783.issue17327@psf.upfronthosting.co.za>
2013-03-11 16:44:46scoderlinkissue17327 messages
2013-03-11 16:44:45scodercreate