mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.
This commit is contained in:
parent
620bb277f8
commit
ea525a2d1a
14 changed files with 396 additions and 356 deletions
|
@ -232,7 +232,8 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.6a1 3370 (16 bit wordcode)
|
||||
# Python 3.6a1 3371 (add BUILD_CONST_KEY_MAP opcode #27140)
|
||||
# Python 3.6a1 3372 (MAKE_FUNCTION simplification, remove MAKE_CLOSURE
|
||||
#27095)
|
||||
# #27095)
|
||||
# Python 3.6b1 3373 (add BUILD_STRING opcode #27078)
|
||||
#
|
||||
# MAGIC must change whenever the bytecode emitted by the compiler may no
|
||||
# longer be understood by older implementations of the eval loop (usually
|
||||
|
@ -241,7 +242,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 = (3372).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3373).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