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
Merged
kumaraditya303
merged 2 commits into
python:main
from
ZackerySpytz:bpo-43327-import-ref-docs
Nov 27, 2022
Merged
bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() #24659
kumaraditya303
merged 2 commits into
python:main
from
ZackerySpytz:bpo-43327-import-ref-docs
Nov 27, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
kumaraditya303
approved these changes
Nov 27, 2022
Thanks @ZackerySpytz for the PR, and @kumaraditya303 for merging it |
GH-99807 is a backport of this pull request to the 3.11 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Nov 27, 2022
…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 <zspytz@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-99808 is a backport of this pull request to the 3.10 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Nov 27, 2022
…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 <zspytz@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
docs
Documentation in the Doc dir
🤖 automerge
PR will be merged once it's been approved and all CI passed
skip news
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
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