◐ Shell
reader mode source ↗
Skip to content

bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c'#21714

Merged
markshannon merged 3 commits into
python:masterfrom
markshannon:remove-i-fields
Aug 4, 2020
Merged

bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c'#21714
markshannon merged 3 commits into
python:masterfrom
markshannon:remove-i-fields

Conversation

@markshannon

@markshannon markshannon commented Aug 3, 2020

Copy link
Copy Markdown
Member

The motivation for this PR is to avoid errors when modifying compile.c.
Setting the i_jabs and i_jrel fields of every instruction is error prone and unnecessary.

https://bugs.python.org/issue41463

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Look great, I left some minor comments

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

LGTM

I left a comment, feel free to address it before landing

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Perfect!

@markshannon markshannon merged commit 582aaf1 into python:master Aug 4, 2020
@markshannon markshannon deleted the remove-i-fields branch August 4, 2020 22:05
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
…han duplicating it in 'compile.c' (pythonGH-21714)

Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
…han duplicating it in 'compile.c' (pythonGH-21714)

Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants