10000 gh-126835: Move const list & set folding in for_iter & contains from ast_opt.c to flowgraph.c by WolframAlph · Pull Request #130032 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-126835: Move const list & set folding in for_iter & contains from ast_opt.c to flowgraph.c #130032

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 9 commits into from
Feb 13, 2025
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
adjust test compile
  • Loading branch information
WolframAlph committed Feb 12, 2025
commit 4ee4054b835d1513f5b92bf39af914de82090fa7
2 changes: 1 addition & 1 deletion Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def check_same_constant(const):
f3 = lambda x: x in {("not a name",)}
self.assertIs(f1.__code__.co_consts[0],
f2.__code__.co_consts[0][0])
self.assertIs(next(iter(f3.__code__.co_consts[0])),
self.assertIs(next(iter(f3.__code__.co_consts[1])),
f2.__code__.co_consts[0])

# {0} is converted to a constant frozenset({0}) by the peephole
Expand Down
Loading
0