Skip to content

Commit 3f8768a

Browse files
[3.14] docs: Clarify docs for error case of PyDict_GetItemRef (GH-149506) (#149547)
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 60e145a commit 3f8768a

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
@@ -133,7 +133,7 @@ Dictionary Objects
133133
* If the key is present, set *\*result* to a new :term:`strong reference`
134134
to the value and return ``1``.
135135
* If the key is missing, set *\*result* to ``NULL`` and return ``0``.
136-
* On error, raise an exception and return ``-1``.
136+
* On error, raise an exception, set *\*result* to ``NULL`` and return ``-1``.
137137
138138
.. note::
139139

0 commit comments

Comments
 (0)