Skip to content

Commit 6bb9a13

Browse files
JelleZijlstrahroncok
authored andcommitted
00447: pythongh-128089: Bump the PYC magic number for a change in annotate functions
The magic number should have been increased in release 3.14a3. Users running 3.14a3 with PYC files generated using earlier alphas may run into problems.
1 parent ff142fd commit 6bb9a13

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Include/internal/pycore_magic_number.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ Known values:
262262
Python 3.14a1 3607 (Add pseudo instructions JUMP_IF_TRUE/FALSE)
263263
Python 3.14a1 3608 (Add support for slices)
264264
Python 3.14a2 3609 (Add LOAD_SMALL_INT and LOAD_CONST_IMMORTAL instructions, remove RETURN_CONST)
265+
Python 3.14a4 3610 (Add VALUE_WITH_FAKE_GLOBALS format to annotationlib)
265266
266267
Python 3.15 will start with 3650
267268
@@ -274,7 +275,7 @@ PC/launcher.c must also be updated.
274275
275276
*/
276277

277-
#define PYC_MAGIC_NUMBER 3609
278+
#define PYC_MAGIC_NUMBER 3610
278279
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
279280
(little-endian) and then appending b'\r\n'. */
280281
#define PYC_MAGIC_NUMBER_TOKEN \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bump the PYC magic number for an internal change in annotate functions. The
2+
magic number should have been increased in release 3.14a3. Users running
3+
3.14a3 with PYC files generated using earlier alphas may run into problems.

0 commit comments

Comments
 (0)