8000 gh-131738: optimize builtin any/all/tuple calls with a generator expression arg by iritkatriel · Pull Request #131737 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131738: optimize builtin any/all/tuple calls with a generator expression arg #131737

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 17 commits into from
Mar 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

< 8000 /details>
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
fix warning
  • Loading branch information
iritkatriel committed Mar 25, 2025
commit cb4eddbf2ca336f52d320733b4251c9e9ea6e063
7F18 2 changes: 1 addition & 1 deletion Python/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -3758,7 +3758,7 @@ maybe_optimize_function_call(compiler *c, expr_ty e, jump_target_label end)
NEW_JUMP_TARGET_LABEL(c, skip_optimization);

int const_oparg = -1;
PyObject *initial_res;
PyObject *initial_res = NULL;
int continue_jump_opcode = -1;
if (_PyUnicode_EqualToASCIIString(func->v.Name.id, "all")) {
const_oparg = CONSTANT_BUILTIN_ALL;
Expand Down
0