This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Use JUMP_FORWARD for all forward jumps.
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Mark.Shannon Nosy List: Mark.Shannon
Priority: normal Keywords: patch

Created on 2021-10-06 10:06 by Mark.Shannon, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28755 merged Mark.Shannon, 2021-10-06 10:21
PR 28829 merged Mark.Shannon, 2021-10-09 12:25
Messages (1)
msg403291 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-10-06 10:06
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.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89551
2021-10-27 10:01:20Mark.Shannonsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-10-09 12:25:48Mark.Shannonsetpull_requests: + pull_request27145
2021-10-06 10:21:38Mark.Shannonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request27099
2021-10-06 10:06:24Mark.Shannoncreate