mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-121749: Fix discrepancy in docs for PyModule_AddObjectRef
(GH-121750) (GH-121753)
(cherry picked from commit 26dfb27712
)
Co-authored-by: Dominic H <dom@dominic.sk>
This commit is contained in:
parent
863c0a3c51
commit
004758e3a4
2 changed files with 2 additions and 1 deletions
|
@ -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::
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix documentation for :c:func:`PyModule_AddObjectRef`.
|
Loading…
Add table
Add a link
Reference in a new issue