[New-bugs-announce] [issue45388] Use JUMP_FORWARD for all forward jumps.

Mark Shannon report at bugs.python.org
Wed Oct 6 06:06:24 EDT 2021


New submission from Mark Shannon <mark at hotpy.org>:

Python has two unconditional jumps, JUMP_ABSOLUTE and JUMP_FORWARD.

The bytecode compiler should ensure that all forward jumps use JUMP_FORWARD and all backwards jumps use JUMP_ABSOLUTE.

That way, the interpreter will know that JUMP_ABSOLUTE jumps are backwards and won't need to check.

----------
assignee: Mark.Shannon
components: Interpreter Core
messages: 403291
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Use JUMP_FORWARD for all forward jumps.
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45388>
_______________________________________


More information about the New-bugs-announce mailing list