-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Discrepancy in docs for PyModule_AddObjectRef
#121749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
type-bug
An unexpected behavior, bug, or error
Comments
On it |
encukou
pushed a commit
that referenced
this issue
Jul 14, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 14, 2024
…ythonGH-121750) (cherry picked from commit 26dfb27) Co-authored-by: Dominic H <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 14, 2024
…ythonGH-121750) (cherry picked from commit 26dfb27) Co-authored-by: Dominic H <[email protected]>
This was referenced Jul 14, 2024
encukou
pushed a commit
that referenced
this issue
Jul 14, 2024
…GH-121750) (GH-121752) (cherry picked from commit 26dfb27) Co-authored-by: Dominic H <[email protected]>
encukou
pushed a commit
that referenced
this issue
Jul 14, 2024
…GH-121750) (GH-121753) (cherry picked from commit 26dfb27) Co-authored-by: Dominic H <[email protected]>
Thank you @tomasr8 for the report and @GovernmentPlates for the fix! |
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
The docs for
PyModule_AddObjectRef
say:cpython/Doc/c-api/module.rst
Lines 520 to 521 in cae1526
However the function actually returns
-1
in that case:cpython/Python/modsupport.c
Lines 590 to 597 in cae1526
We should update the documentation to reflect that.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
PyModule_AddObjectRef
#121750PyModule_AddObjectRef
(GH-121750) #121752PyModule_AddObjectRef
(GH-121750) #121753The text was updated successfully, but these errors were encountered: