]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134889: Fix handling of a few opcodes when optimizing `LOAD_FAST` (#134958)
authormpage <mpage@meta.com>
Wed, 4 Jun 2025 23:07:58 +0000 (16:07 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 23:07:58 +0000 (16:07 -0700)
commit6b77af257c25d31f1f137e477cb23e63692ddf29
tree9ebaab57c5e1f5a24385265b3a5fbdec56cc92a2
parente598eecf4c97509acef517e94053e45db51636fb
gh-134889: Fix handling of a few opcodes when optimizing `LOAD_FAST` (#134958)

We were incorrectly handling a few opcodes that leave their operands on the stack. Treat all of these conservatively; assume that they always leave operands on the stack.
Include/internal/pycore_magic_number.h
Lib/test/test_dis.py
Lib/test/test_peepholer.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-18-09-54.gh-issue-134889.Ic9UM-.rst [new file with mode: 0644]
Python/flowgraph.c