bpo-38605: bump the magic number for 'annotations' future (#22630) · python/cpython@22220ae (original) (raw)

Original file line number Diff line number Diff line change
@@ -277,6 +277,7 @@ def _write_atomic(path, data, mode=0o666):
277 277 # Python 3.9a2 3423 (add IS_OP, CONTAINS_OP and JUMP_IF_NOT_EXC_MATCH bytecodes #39156)
278 278 # Python 3.9a2 3424 (simplify bytecodes for *value unpacking)
279 279 # Python 3.9a2 3425 (simplify bytecodes for **value unpacking)
280 +# Python 3.10a1 3430 (Make 'annotations' future by default)
280 281
281 282 #
282 283 # MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -286,7 +287,7 @@ def _write_atomic(path, data, mode=0o666):
286 287 # Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
287 288 # in PC/launcher.c must also be updated.
288 289
289 -MAGIC_NUMBER = (3425).to_bytes(2, 'little') + b'\r\n'
290 +MAGIC_NUMBER = (3430).to_bytes(2, 'little') + b'\r\n'
290 291 _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
291 292
292 293 _PYCACHE = '__pycache__'