Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Clarify docs for error case of PyDict_GetItemRef
  • Loading branch information
ngoldbaum committed May 7, 2026
commit 2abbc1e30e0aaa01733ae75444e08d9516cef82d
2 changes: 1 addition & 1 deletion Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Dictionary objects
* If the key is present, set *\*result* to a new :term:`strong reference`
to the value and return ``1``.
* If the key is missing, set *\*result* to ``NULL`` and return ``0``.
* On error, raise an exception and return ``-1``.
* On error, raise an exception, set *\*result* to ``NULL``, and return ``-1``.
Comment thread
ngoldbaum marked this conversation as resolved.
Outdated

The first argument can be a :class:`dict` or a :class:`frozendict`.

Expand Down
Loading