Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-47120: make JUMP_NO_INTERRUPT relative #32221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 5, 2022
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into jump_no_interrupt
  • Loading branch information
iritkatriel committed Apr 1, 2022
commit fb8232eb3253de8b5b2e918cc321ac60d94b4b41
3 changes: 1 addition & 2 deletions 3 Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def _write_atomic(path, data, mode=0o666):
# Python 3.11a6 3487 (Remove the adaptive "oparg counter" mechanism)
# Python 3.11a6 3488 (LOAD_GLOBAL can push additional NULL)
# Python 3.11a6 3489 (Add JUMP_BACKWARD, remove JUMP_ABSOLUTE)
# Python 3.11a6 3490 (Add JUMP_BACKWARD_NO_INTERRUPT, remove JUMP_NO_INTERRUPT)
# Python 3.11a6 3490 (remove JUMP_IF_NOT_EXC_MATCH, add CHECK_EXC_MATCH)

# Python 3.12 will start with magic number 3500

Expand All @@ -413,7 +413,6 @@ def _write_atomic(path, data, mode=0o666):
# in PC/launcher.c must also be updated.

MAGIC_NUMBER = (3490).to_bytes(2, 'little') + b'\r\n'

_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c

_PYCACHE = '__pycache__'
Expand Down
4 changes: 1 addition & 3 deletions 4 Lib/test/test_dis.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,7 @@ def test_boundaries(self):
def test_widths(self):
for opcode, opname in enumerate(dis.opname):
if opname in ('BUILD_MAP_UNPACK_WITH_CALL',
'BUILD_TUPLE_UNPACK_WITH_CALL',
'JUMP_IF_NOT_EXC_MATCH',
'JUMP_BACKWARD_NO_INTERRUPT'):
'BUILD_TUPLE_UNPACK_WITH_CALL'):
continue
with self.subTest(opname=opname):
width = dis._OPNAME_WIDTH
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.