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: Avoid duplicating jump information from opcode.py in compile.c
Type: enhancement Stage: resolved
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Mark.Shannon, iritkatriel
Priority: normal Keywords: patch

Created on 2020-08-03 11:00 by Mark.Shannon, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 21714 merged Mark.Shannon, 2020-08-03 12:02
Messages (4)
msg374735 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2020-08-03 11:00
opcode.py declares which jumps are relative and which are absolute.
We duplicate that information in compile.c
We should generate lookup tables in opcodes.h and to repeating that information in compile.c
msg374830 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2020-08-04 16:30
New changeset 582aaf19e8b94a70c1f96792197770d604ba0fdf by Mark Shannon in branch 'master':
bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c' (GH-21714)
https://github.com/python/cpython/commit/582aaf19e8b94a70c1f96792197770d604ba0fdf
msg384294 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-01-03 19:28
This seems complete, unless you still want to backport?
msg384342 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-01-04 18:27
I don't think we want to backport it
History
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85635
2021-01-04 18:27:08Mark.Shannonsetstatus: pending -> closed

messages: + msg384342
stage: patch review -> resolved
2021-01-03 19:28:21iritkatrielsetstatus: open -> pending

nosy: + iritkatriel
messages: + msg384294

resolution: fixed
2020-08-04 16:30:20Mark.Shannonsetmessages: + msg374830
2020-08-03 12:02:12Mark.Shannonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request20858
2020-08-03 11:00:15Mark.Shannoncreate