Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix double decref in error case
  • Loading branch information
@carljm
carljm committedFeb 9, 2023
commitf0c051e94f27ea40ee0ceedd1c141e53a27c921d
2 changes: 1 addition & 1 deletionPython/compile.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5447,7 +5447,7 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
if (compiler_make_closure(c, loc, co, 0) < 0) {
goto error;
}
Py_DECREF(co);
Py_CLEAR(co);

if (compiler_comprehension_iter(c, loc, outermost)) {
goto error;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp