diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-06 19:07:53 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-06 19:07:53 (GMT) |
commit | ea525a2d1a798f529b015f86b174d478806ac7ec (patch) | |
tree | 4ed79494c2a6a8e3460027a246020d25c1eaca16 /Lib/importlib | |
parent | 620bb277f89ba373b8c50e1a9fb9c8ba77a245c4 (diff) | |
download | cpython-ea525a2d1a798f529b015f86b174d478806ac7ec.zip cpython-ea525a2d1a798f529b015f86b174d478806ac7ec.tar.gz cpython-ea525a2d1a798f529b015f86b174d478806ac7ec.tar.bz2 |
Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 46f1bab..d36e4ac 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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__' |