Skip to content

Commit 67fbb77

Browse files
ngoldbaummiss-islington
authored andcommitted
docs: Clarify docs for error case of PyDict_GetItemRef (GH-149506)
(cherry picked from commit 3565d31) Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
1 parent 59b260c commit 67fbb77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/dict.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Dictionary Objects
118118
* If the key is present, set *\*result* to a new :term:`strong reference`
119119
to the value and return ``1``.
120120
* If the key is missing, set *\*result* to ``NULL`` and return ``0``.
121-
* On error, raise an exception and return ``-1``.
121+
* On error, raise an exception, set *\*result* to ``NULL`` and return ``-1``.
122122
123123
.. versionadded:: 3.13
124124

0 commit comments

Comments
 (0)