-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() #24659
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
bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() #24659
Conversation
The docs state that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. The name of this function's first parameter must be specified in Doc/data/refcounts.dat. The line for the name parameter will correspond to the function's return value if the parameter name is not given (as mentioned in a comment at the top of Doc/data/refcounts.dat).
This PR is stale because it has been open for 30 days with no activity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me.
Thanks @ZackerySpytz for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-99807 is a backport of this pull request to the 3.11 branch. |
…onGH-24659) The docs stated that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. (cherry picked from commit 62a5dc1) Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
GH-99808 is a backport of this pull request to the 3.10 branch. |
…onGH-24659) The docs stated that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. (cherry picked from commit 62a5dc1) Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
…4659) The docs stated that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. (cherry picked from commit 62a5dc1) Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
…4659) The docs stated that PyImport_ImportFrozenModuleObject() returns a new reference, but it actually returns an int. (cherry picked from commit 62a5dc1) Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
The docs state that PyImport_ImportFrozenModuleObject() returns a
new reference, but it actually returns an int.
The name of this function's first parameter must be specified in
Doc/data/refcounts.dat. The line for the name parameter will
correspond to the function's return value if the parameter name is
not given (as mentioned in a comment at the top of
Doc/data/refcounts.dat).
https://bugs.python.org/issue43327
Automerge-Triggered-By: GH:kumaraditya303