]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: Clarify docs for error case of `PyDict_GetItemRef` (#149506)
authorNathan Goldbaum <nathan.goldbaum@gmail.com>
Fri, 8 May 2026 10:53:44 +0000 (04:53 -0600)
committerGitHub <noreply@github.com>
Fri, 8 May 2026 10:53:44 +0000 (10:53 +0000)
Doc/c-api/dict.rst

index a2a0d0d80657ebfc35e3cf02e8bf3900009bdd6e..556113a97bf772fd49628195f144841069103bd8 100644 (file)
@@ -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``.
 
    The first argument can be a :class:`dict` or a :class:`frozendict`.