◐ Shell
clean mode source ↗

Align opcode names in `dis` by ShaharNaveh · Pull Request #6526 · RustPython/RustPython

1055-1093: PopTop replaces Pop cleanly for simple TOS discards

The new Instruction::PopTop usages here (REPL printing, import-from module pop, statement expr results, with without as, non-simple annotated assigns, and generator comprehensions) are all straightforward “drop unused result” sites and remain stack-correct with stack_effect(PopTop) == -1. No functional change beyond the opcode rename.

Also applies to: 1403-1412, 2050-2061, 2927-2957, 4190-4198, 4810-4833


3136-3710: Pattern-matching and control-flow cleanup PopTop sites remain stack-safe

All pattern/exception-related uses of PopTop (pattern failure cleanups, wildcard/star captures, mapping/sequence/class patterns, Match default/fallthrough handling, and chained-comparison early-exit cleanup) correctly discard subjects or intermediate values that are no longer needed. The PatternContext.on_top accounting plus stack_effect(PopTop) = -1 stays consistent, so control-flow and stack behavior are preserved across the rename.

Also applies to: 3793-3819, 3887-3894, 4125-4131