From: Steve Dower Date: Mon, 16 May 2016 16:35:18 +0000 (-0700) Subject: Issue #26073: Updates magic number comment in _bootstrap_external.py and changes... X-Git-Tag: v3.6.0a1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d0abb9eb6fdb21bcb3486ae661f80ee30b45837;p=python Issue #26073: Updates magic number comment in _bootstrap_external.py and changes numbers in launcher.py to decimal to match official table. --- 8d0abb9eb6fdb21bcb3486ae661f80ee30b45837 diff --cc Lib/importlib/_bootstrap_external.py index 5d63a1f23a,ef13fd2f47..076ed162bb --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@@ -229,8 -227,11 +229,11 @@@ _code_type = type(_write_atomic.__code_ # MAGIC must change whenever the bytecode emitted by the compiler may no # longer be understood by older implementations of the eval loop (usually # due to the addition of new opcodes). + # + # Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array + # in PC/launcher.c must also be updated. -MAGIC_NUMBER = (3350).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3361).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__'