]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (#149548)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 May 2026 11:06:11 +0000 (13:06 +0200)
committerGitHub <noreply@github.com>
Fri, 8 May 2026 11:06:11 +0000 (16:36 +0530)
docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506)
(cherry picked from commit 3565d31690d30a189933bce7b27d0bd2c6973f47)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Doc/c-api/dict.rst

index 20ae06df64bec6955be79d5e87b972e7b502b9c3..b45bb043502bbaa9a799b4809d201aae4af33425 100644 (file)
@@ -118,7 +118,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``.
 
    .. versionadded:: 3.13