mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778)
https://bugs.python.org/issue37593
This commit is contained in:
parent
8b7db5a111
commit
cd6e83b481
8 changed files with 185 additions and 181 deletions
|
@ -268,6 +268,8 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.8a1 3410 (PEP570 Python Positional-Only Parameters #36540)
|
||||
# Python 3.8b2 3411 (Reverse evaluation order of key: value in dict
|
||||
# comprehensions #35224)
|
||||
# Python 3.8b2 3412 (Swap the position of positional args and positional
|
||||
# only args in ast.arguments #37593)
|
||||
#
|
||||
# MAGIC must change whenever the bytecode emitted by the compiler may no
|
||||
# longer be understood by older implementations of the eval loop (usually
|
||||
|
@ -276,7 +278,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 = (3411).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3412).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