-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
codeobject.replace
function is undocumented
#115572
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
Comments
It looks like there are some very short docs on the method here: https://docs.python.org/3/library/types.html#types.CodeType.replace But it's in the wrong place; all other code object attributes and methods are documented here: https://docs.python.org/3/reference/datamodel.html#code-objects. Also, the docs for |
Oh, there already an entry in https://docs.python.org/3.12/library/types.html#types.CodeType, but there's nothing about Another doc about code objects: https://docs.python.org/3.12/reference/datamodel.html#methods-on-code-objects |
…model (pythonGH-115631) (cherry picked from commit 0c80da4) Co-authored-by: Daler <[email protected]>
#115632) * [3.11] gh-115572: Move `codeobject.replace()` docs to the data model (GH-115631) (cherry picked from commit 0c80da4) Co-authored-by: Daler <[email protected]> * Remove note about copy.replace --------- Co-authored-by: Daler <[email protected]>
#115633) * [3.12] gh-115572: Move `codeobject.replace()` docs to the data model (GH-115631) (cherry picked from commit 0c80da4) Co-authored-by: Daler <[email protected]> * Remove note about copy.replace --------- Co-authored-by: Daler <[email protected]>
Thanks @daler-sz for fixing this! |
Bug description:
codeobject.replace
function was introduced in a9f05d6, but there's only a note inDoc/whatsnew
.My folk @daler-sz would like to work on a fix :)
CPython versions tested on:
3.11, 3.12, 3.13
Operating systems tested on:
No response
Linked PRs
codeobject.replace()
docs to the data model #115631codeobject.replace()
docs to the data model … #115632codeobject.replace()
docs to the data model … #115633The text was updated successfully, but these errors were encountered: