Message 298935 - Python tracker (original) (raw)
For example we could generate the following bytecode:
SETUP_FINALLY L1
// ... stmt1
POP_BLOCK
JUMP_FINALLY L1
L1: // ... stmt2 RERAISE JUMP_FORWARD L2 L2:
JUMP_FINALLY would push 3 Nones on the stack. RERAISE would raise only if non-None values are popped.