bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)

This commit is contained in:
Brandt Bucher 2021-05-02 13:02:10 -07:00 • committed by GitHub
parent 7d2b83e9f0
commit 0ad1e0384c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 575 additions and 345 deletions

View file

@ -351,6 +351,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.10b1 3436 (Add GEN_START bytecode #43683)
# Python 3.10b1 3437 (Undo making 'annotations' future by default - We like to dance among core devs!)
# Python 3.10b1 3438 Safer line number table handling.
# Python 3.10b1 3439 (Add ROT_N)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@ -360,7 +361,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 = (3438).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (3439).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'