From ba88c4f763f5ad0a95e3e7e84c3f7c685aca44eb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 11 Nov 2020 01:31:23 +0100 Subject: [PATCH] bpo-1635741: Fix typo in PyModule_AddObjectRef() doc It is similar to PyModule_AddObject(), not to itself. --- Doc/whatsnew/3.10.rst | 2 +- .../next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 76e11f0ddf0c06..b0d91abaf2e0ef 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -424,7 +424,7 @@ New Features (Contributed by Alex Gaynor in :issue:`41784`.) * Added :c:func:`PyModule_AddObjectRef` function: similar to - :c:func:`PyModule_AddObjectRef` but don't steal a reference to the value on + :c:func:`PyModule_AddObject` but don't steal a reference to the value on success. (Contributed by Victor Stinner in :issue:`1635741`.) diff --git a/Misc/NEWS.d/next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst b/Misc/NEWS.d/next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst index 2ab1afb922fa8b..2c118129dbf104 100644 --- a/Misc/NEWS.d/next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst +++ b/Misc/NEWS.d/next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst @@ -1,3 +1,3 @@ Added :c:func:`PyModule_AddObjectRef` function: similar to -:c:func:`PyModule_AddObjectRef` but don't steal a reference to the value on +:c:func:`PyModule_AddObject` but don't steal a reference to the value on success. Patch by Victor Stinner.