[issue41802] Missing documentation for 'PyDict_DelItem' behavior
Campbell Barton
report at bugs.python.org
Thu Sep 17 07:20:48 EDT 2020
Campbell Barton <ideasman42 at gmail.com> added the comment:
Edit:
When calling 'PyDict_DelItem' on a key that isn't in the dictionary, a 'KeyError' is raised. This is not documented.
>From reading the current documentation, it only seems as if an error is raised if the key can't be hashed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41802>
_______________________________________
More information about the Python-bugs-list
mailing list