-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-43693: Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. #26388
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
Merged
ericsnowcurrently
merged 31 commits into
python:main
from
ericsnowcurrently:fast-local-kinds
Jun 3, 2021
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a5edf53
Add co_fastlocalnames and co_fastlocalkinds.
ericsnowcurrently 3cf1539
Populate the fast locals info first.
ericsnowcurrently 3f11732
Allow co_varnames and friends to be NULL.
ericsnowcurrently a492565
Update the import magic number.
ericsnowcurrently 0ff263e
Regen a couple more files.
ericsnowcurrently 90f4e8a
Add a NEWS entry.
ericsnowcurrently ee10bb3
Fix the arg-is-cell case.
ericsnowcurrently 861f90c
Use int for counts instead of Py_ssize_t.
ericsnowcurrently 4d97056
Switch co_fastlocalkinds to a variable length array.
ericsnowcurrently f67e7eb
Fix a "smelly" symbol.
ericsnowcurrently c5d0ad2
Fix PyFrame_FastToLocals() and PyFrame_LocalsToFast().
ericsnowcurrently b9a975c
Fix a typo.
ericsnowcurrently 3b01a5f
Regen other files.
ericsnowcurrently 19465f4
Fix the gdb script.
ericsnowcurrently 93c3568
lint
ericsnowcurrently 418da97
Expose co_fastlocalnames to Python code.
ericsnowcurrently 9de74bd
Update the dis docs.
ericsnowcurrently e50e286
Use co_fastlocalnames in the dis module.
ericsnowcurrently f0fda39
Fix some comments.
ericsnowcurrently 361ca0a
Drop "inline" from some big functions.
ericsnowcurrently bbdaada
Clarify that we only look through the free vars in super_init_without…
ericsnowcurrently 8c100d9
Clarify about the case where a "fast" arg is also a cell.
ericsnowcurrently 505536e
Use a private getter function for co_fastlocalnames instead of a prop…
ericsnowcurrently 885e435
Drop the arg-related flags.
ericsnowcurrently 29e1c2a
Leave the bottom numbers for locals kinds.
ericsnowcurrently 235e4aa
"fastlocal" -> "localsplus"
ericsnowcurrently 13fe60d
Add a note about "locals plus" and variable kinds.
ericsnowcurrently fba56f5
co._get_localsplusnames() -> co._varname_from_oparg()
ericsnowcurrently 68c7776
Fix the gdb hooks.
ericsnowcurrently e10e7da
Be more strict about types.
ericsnowcurrently 87cb192
Add a TODO about "_PyCodeConstructor.argcount".
ericsnowcurrently File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Core and Builtins/2021-05-21-20-53-49.bpo-43693.-NN3J_.rst
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
``PyCodeObject`` gained ``co_fastlocalnames`` and ``co_fastlocalkinds`` as | ||
the the authoritative source of fast locals info. Marshaled code objects | ||
have changed accordingly. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.