sys.monitoring: BRANCH_LEFT event from a non-branch opcode #128419
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Using sys.monitoring, I get a BRANCH_LEFT event from an instruction with no branch (STORE_NAME).
This is while_true.py:
Disassembled:
Running run_sysmon.py shows these events:
The starred line is a BRANCH_LEFT event from a STORE_NAME opcode, which doesn't make sense. The disassembly shows line 2 with a NOT_TAKEN event which I expect is left over from optimizing away the
while True:
.CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: