From 0d192aec6bc73fe6454be834ef77b2041ce1d748 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Fri, 8 May 2026 04:53:44 -0600 Subject: [PATCH] docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (cherry picked from commit 3565d31690d30a189933bce7b27d0bd2c6973f47) Co-authored-by: Nathan Goldbaum --- Doc/c-api/dict.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 1629e544d55fc2..b77a0739936186 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::