Message183974
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.) |
|
Date |
User |
Action |
Args |
2013-03-11 16:44:46 | scoder | set | recipients:
+ scoder, rhettinger, pitrou, benjamin.peterson, python-dev |
2013-03-11 16:44:46 | scoder | set | messageid: <1363020286.07.0.374707709783.issue17327@psf.upfronthosting.co.za> |
2013-03-11 16:44:46 | scoder | link | issue17327 messages |
2013-03-11 16:44:45 | scoder | create | |
|