]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126835: Move constant subscript folding to CFG (#129568)
authorYan Yanchii <yyanchiy@gmail.com>
Tue, 4 Feb 2025 08:10:55 +0000 (09:10 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2025 08:10:55 +0000 (10:10 +0200)
commit0664c1af9b29a5af2404e04a522f8e9e175ba05a
tree280d19751c46e05e8c7796910120e475d5f79553
parentbb5c6875d6e84bf2b4e134ed482141a51d223f09
gh-126835: Move constant subscript folding to CFG (#129568)

Move folding of constant subscription from AST optimizer to CFG.

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Include/internal/pycore_long.h
Lib/test/test_ast/test_ast.py
Lib/test/test_peepholer.py
Python/ast_opt.c
Python/codegen.c
Python/flowgraph.c