diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-11 00:52:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 00:52:26 (GMT) |
commit | 95ce7cd0a64e7f4739af2d1c158ef69b6980f12a (patch) | |
tree | 60f790b3e7e7e0d2af458cf2e4033af08a382e7c | |
parent | 78ba7c69ada2f7eefd4e3ea375337d78dc2ce721 (diff) | |
download | cpython-95ce7cd0a64e7f4739af2d1c158ef69b6980f12a.zip cpython-95ce7cd0a64e7f4739af2d1c158ef69b6980f12a.tar.gz cpython-95ce7cd0a64e7f4739af2d1c158ef69b6980f12a.tar.bz2 |
bpo-1635741: Fix typo in PyModule_AddObjectRef() doc (GH-23234)
It is similar to PyModule_AddObject(), not to itself.
-rw-r--r-- | Doc/whatsnew/3.10.rst | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/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 807e87f..74c1c28 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 2ab1afb..2c11812 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. |