[Python-checkins] bpo-1635741: Fix typo in PyModule_AddObjectRef() doc (GH-23234)

vstinner webhook-mailer at python.org
Tue Nov 10 19:52:36 EST 2020


https://github.com/python/cpython/commit/95ce7cd0a64e7f4739af2d1c158ef69b6980f12a
commit: 95ce7cd0a64e7f4739af2d1c158ef69b6980f12a
branch: master
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2020-11-11T01:52:26+01:00
summary:

bpo-1635741: Fix typo in PyModule_AddObjectRef() doc (GH-23234)

It is similar to PyModule_AddObject(), not to itself.

files:
M Doc/whatsnew/3.10.rst
M Misc/NEWS.d/next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 807e87f2eef11..74c1c28ec0ff3 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 2ab1afb922fa8..2c118129dbf10 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.



More information about the Python-checkins mailing list