Issue #26073: Updates magic number comment in _bootstrap_external.py and changes numbers in launcher.py to decimal to match official table.

This commit is contained in:
Steve Dower 2016-05-16 09:34:20 -07:00
parent e6f060903c
commit 7ae61af827
2 changed files with 18 additions and 15 deletions

View file

@ -227,6 +227,9 @@ _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'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c