[issue17327] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()
Stefan Behnel
report at bugs.python.org
Thu Mar 7 15:05:39 CET 2013
Stefan Behnel added the comment:
The problem with 'default' is that it is a reserved word in C. I changed it to "defaultobj", except for the docs page, where "default" should work. I also removed the "register" declaration from the "mp" argument because it is most likely useless and just takes up screen real estate.
----------
Added file: http://bugs.python.org/file29339/pydict_setitemdefault.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17327>
_______________________________________
More information about the Python-bugs-list
mailing list