]> granicus.if.org Git - python/commitdiff
Issue #26073: Updates magic number comment in _bootstrap_external.py and changes...
authorSteve Dower <steve.dower@microsoft.com>
Mon, 16 May 2016 16:35:18 +0000 (09:35 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Mon, 16 May 2016 16:35:18 +0000 (09:35 -0700)
1  2 
Lib/importlib/_bootstrap_external.py
PC/launcher.c

index 5d63a1f23a8fb30ff7d35da9515bd57a34fe7434,ef13fd2f477bf6179e69b212ae1492541a1532b0..076ed162bb064771616b38961c51cf6a2c4d2a4e
@@@ -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__'
diff --cc PC/launcher.c
Simple merge