From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 14 Jul 2024 10:31:58 +0000 (+0200) Subject: [3.12] gh-121749: Fix discrepancy in docs for `PyModule_AddObjectRef` (GH-121750... X-Git-Tag: v3.12.5~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=004758e3a4f80dd3f0f9043c7627b7bee1bbaf9c;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-121749: Fix discrepancy in docs for `PyModule_AddObjectRef` (GH-121750) (GH-121753) (cherry picked from commit 26dfb2771236bfd96cdaa1081103f75141ecff47) Co-authored-by: Dominic H --- diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 02efb9921a9b..b6b7026c629b 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -492,7 +492,7 @@ state: On success, return ``0``. On error, raise an exception and return ``-1``. - Return ``NULL`` if *value* is ``NULL``. It must be called with an exception + Return ``-1`` if *value* is ``NULL``. It must be called with an exception raised in this case. Example usage:: diff --git a/Misc/NEWS.d/next/Documentation/2024-07-14-11-48-10.gh-issue-121749.nxHoTk.rst b/Misc/NEWS.d/next/Documentation/2024-07-14-11-48-10.gh-issue-121749.nxHoTk.rst new file mode 100644 index 000000000000..17dc60c11468 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2024-07-14-11-48-10.gh-issue-121749.nxHoTk.rst @@ -0,0 +1 @@ +Fix documentation for :c:func:`PyModule_AddObjectRef`.