mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy. (GH-30289)
This commit is contained in:
parent
8e75c6b49b
commit
65e7c1f90e
9 changed files with 179 additions and 149 deletions
|
@ -375,6 +375,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.11a4 3467 (Change CALL_xxx opcodes)
|
||||
# Python 3.11a4 3468 (Add SEND opcode)
|
||||
# Python 3.11a4 3469 (bpo-45711: remove type, traceback from exc_info)
|
||||
# Python 3.11a4 3470 (bpo-46221: PREP_RERAISE_STAR no longer pushes lasti)
|
||||
|
||||
#
|
||||
# MAGIC must change whenever the bytecode emitted by the compiler may no
|
||||
|
@ -384,7 +385,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
|
||||
# in PC/launcher.c must also be updated.
|
||||
|
||||
MAGIC_NUMBER = (3469).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3470).to_bytes(2, 'little') + b'\r\n'
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
_PYCACHE = '__pycache__'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue