From 571e39bd0eaefaa7f0133db55832282e71d03a02 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 19 Dec 2024 07:28:31 -0800 Subject: [PATCH 1/2] gh-128089: Bump the magic number --- Include/internal/pycore_magic_number.h | 3 ++- .../2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst diff --git a/Include/internal/pycore_magic_number.h b/Include/internal/pycore_magic_number.h index 14e29576875c6e..9ab327afb679b9 100644 --- a/Include/internal/pycore_magic_number.h +++ b/Include/internal/pycore_magic_number.h @@ -262,6 +262,7 @@ Known values: Python 3.14a1 3607 (Add pseudo instructions JUMP_IF_TRUE/FALSE) Python 3.14a1 3608 (Add support for slices) Python 3.14a2 3609 (Add LOAD_SMALL_INT and LOAD_CONST_IMMORTAL instructions, remove RETURN_CONST) + Python 3.14a4 3610 (Add VALUE_WITH_FAKE_GLOBALS format to annotationlib) Python 3.15 will start with 3650 @@ -274,7 +275,7 @@ PC/launcher.c must also be updated. */ -#define PYC_MAGIC_NUMBER 3609 +#define PYC_MAGIC_NUMBER 3610 /* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes (little-endian) and then appending b'\r\n'. */ #define PYC_MAGIC_NUMBER_TOKEN \ diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst new file mode 100644 index 00000000000000..69687bc516fac6 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst @@ -0,0 +1,3 @@ +Bump the PYC magic number for an internal 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. From d2078dc0e0e05243d37bb4d1c1052966184695a9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 6 Jan 2025 11:05:59 +0100 Subject: [PATCH 2/2] Delete Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst --- .../2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst deleted file mode 100644 index 69687bc516fac6..00000000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2024-12-19-07-32-43.gh-issue-128089.3uOOM-.rst +++ /dev/null @@ -1,3 +0,0 @@ -Bump the PYC magic number for an internal 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.