-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-97933: inline list/dict/set comprehensions #101441
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
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
72afa83
gh-97933: inline sync list/dict/set comprehensions
carljm 8988234
simplify cell handling code slightly
carljm 22c4a86
clarify comments
carljm c1b54f0
enable inlining async comprehensions also
carljm 43db9b8
fix typo
carljm ed3209b
Merge branch 'main' into inlinecomp2
carljm aceb6c7
fix outer-cell, inner-local case
carljm e57c354
fix restoring NULL (unbound outer name) followed by load
carljm 795d854
emit 1 x SWAP N+1 instead of N x SWAP 2
carljm 686221a
remove stray dis.dis() call
carljm ac99697
fix compiler warning about Py_ssize_t -> int conversion
carljm db208d5
Merge branch 'main' into inlinecomp2
carljm 8b76051
Merge branch 'main' into inlinecomp2
carljm 4620856
add a couple more tests
carljm 8773653
clear comp locals on entry, eval iter expr first
carljm
8000
be3becc
Merge branch 'main' into inlinecomp2
carljm f0c051e
fix double decref in error case
carljm 142859a
adjust to RETURN_CONST
carljm 568a470
fix up refcounting
carljm add772e
Merge branch 'main' into inlinecomp2
carljm 17d5d84
improve importlib comment
carljm b87d209
mark STORE_FAST_MAYBE_NULL as possibly NULLing a local
carljm 36b2917
Merge branch 'main' into inlinecomp2
carljm ae0bd02
Merge branch 'main' into inlinecomp2
carljm 9f0fc5b
Merge branch 'main' into inlinecomp2
carljm 463c740
add test for NameError/UnboundLocalError
carljm 67f50ba
fix case where iter var is free in outer scope
carljm 73dc0ed
Merge branch 'main' into inlinecomp2
carljm ecb313c
Merge branch 'main' into inlinecomp2
carljm 4109baa
add inlining of non-function-scope comprehensions
carljm d8802a1
simplify scope handling
carljm 1c019a7
Merge branch 'main' into inlinecomp2
carljm 24a9d9f
Merge branch 'main' into inlinecomp2
carljm b6a025b
add tests for comprehensions in class scope
carljm 90b34de
run all listcomp scope tests in module, class, and func scope
carljm 06db319
Merge branch 'main' into inlinecomp2
carljm b52046b
handle frame locals materialization in class/module scope
carljm 6c5f269
Merge branch 'main' into inlinecomp2
carljm 1a8f4a0
Merge branch 'main' into inlinecomp2
carljm 1274e2b
Merge branch 'main' into inlinecomp2
carljm 0727d6f
Merge branch 'main' into inlinecomp2
carljm 51a1294
update comment
carljm 8a78a36
Merge branch 'main' into inlinecomp2
carljm 43722b4
review comments
carljm bf9e1f1
fix single backticks
carljm ca636a5
better nested test
carljm 46c7a4f
fix u_fasthidden in nested case
carljm fb9f89e
fix refleak
carljm baacf5f
Merge branch 'main' into inlinecomp2
carljm 5914d77
remove assumption that class scopes can't have cellvars
carljm ffae4e6
Apply suggestions from code review
carljm 76077cd
Merge branch 'main' into inlinecomp2
carljm a8425a6
review comments
carljm 656e46b
Apply suggestions from code review
carljm 1402e7a
Apply suggestions from code review
carljm 95401fe
Merge branch 'main' into inlinecomp2
carljm 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
handle frame locals materialization in class/module scope
- Loading branch information
commit b52046b8dd73f9d64d1f721af7b2f12155dba64c
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
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.