mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-27129: Update magic numbers and bootstrapping for GH-25069 (GH-25172)
* Update magic numbers and bootstrapping for GH-25069 * add blurb Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
3caea9adda
commit
c368ce74d2
3 changed files with 3 additions and 2 deletions
|
@ -324,7 +324,7 @@ _code_type = type(_write_atomic.__code__)
|
||||||
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
|
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
|
||||||
# in PC/launcher.c must also be updated.
|
# in PC/launcher.c must also be updated.
|
||||||
|
|
||||||
MAGIC_NUMBER = (3434).to_bytes(2, 'little') + b'\r\n'
|
MAGIC_NUMBER = (3435).to_bytes(2, 'little') + b'\r\n'
|
||||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||||
|
|
||||||
_PYCACHE = '__pycache__'
|
_PYCACHE = '__pycache__'
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Update CPython bytecode magic number.
|
2
Python/importlib_external.h
generated
2
Python/importlib_external.h
generated
|
@ -315,7 +315,7 @@ const unsigned char _Py_M__importlib_bootstrap_external[] = {
|
||||||
0,115,38,0,0,0,16,5,6,1,22,1,4,255,2,2,
|
0,115,38,0,0,0,16,5,6,1,22,1,4,255,2,2,
|
||||||
14,3,24,1,16,128,18,1,12,1,2,1,12,1,2,3,
|
14,3,24,1,16,128,18,1,12,1,2,1,12,1,2,3,
|
||||||
12,254,2,1,2,1,2,254,2,253,255,128,114,84,0,0,
|
12,254,2,1,2,1,2,254,2,253,255,128,114,84,0,0,
|
||||||
0,105,106,13,0,0,114,45,0,0,0,114,33,0,0,0,
|
0,105,107,13,0,0,114,45,0,0,0,114,33,0,0,0,
|
||||||
115,2,0,0,0,13,10,90,11,95,95,112,121,99,97,99,
|
115,2,0,0,0,13,10,90,11,95,95,112,121,99,97,99,
|
||||||
104,101,95,95,122,4,111,112,116,45,122,3,46,112,121,122,
|
104,101,95,95,122,4,111,112,116,45,122,3,46,112,121,122,
|
||||||
4,46,112,121,119,122,4,46,112,121,99,41,1,218,12,111,
|
4,46,112,121,119,122,4,46,112,121,99,41,1,218,12,111,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue