From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 8 May 2026 11:07:00 +0000 (+0200) Subject: [3.14] docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (#149547) X-Git-Tag: v3.14.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8768aeea44adf2a3dfc55311d41265d67279af;p=thirdparty%2FPython%2Fcpython.git [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 3565d31690d30a189933bce7b27d0bd2c6973f47) Co-authored-by: Nathan Goldbaum --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 1629e544d55f..b77a07399361 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -133,7 +133,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``. .. note::