Skip to content

Commit e873771

Browse files
committed
Clarify docs for error case of PyDict_GetItemRef
1 parent f5c7535 commit e873771

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
@@ -151,7 +151,7 @@ Dictionary objects
151151
* If the key is present, set *\*result* to a new :term:`strong reference`
152152
to the value and return ``1``.
153153
* If the key is missing, set *\*result* to ``NULL`` and return ``0``.
154-
* On error, raise an exception and return ``-1``.
154+
* On error, raise an exception, set *\*result* to ``NULL``, and return ``-1``.
155155
156156
The first argument can be a :class:`dict` or a :class:`frozendict`.
157157

0 commit comments

Comments
 (0)