[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

Stefan Behnel report at bugs.python.org
Thu Mar 7 20:21:16 CET 2013


Stefan Behnel added the comment:

To me, PyDict_SetDefault() sounds like it's supposed to set a default value that PyDict_GetItem() would return instead of NULL on lookup failure. Basically a defaultdict-like extension to normal dicts.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17327>
_______________________________________


More information about the Python-bugs-list mailing list