From 5e0252ee4611e197b7ed7ff1e292826a9b6aa28f Mon Sep 17 00:00:00 2001 From: Matt Page Date: Tue, 1 Apr 2025 14:01:37 -0700 Subject: [PATCH] Bump the magic number This should have been done as part of 053c285 but got blown away in a merge. --- Include/internal/pycore_magic_number.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Include/internal/pycore_magic_number.h b/Include/internal/pycore_magic_number.h index edcc52b337364f..3fa2b714cb6f23 100644 --- a/Include/internal/pycore_magic_number.h +++ b/Include/internal/pycore_magic_number.h @@ -273,6 +273,7 @@ Known values: Python 3.14a6 3618 (Add oparg to END_ASYNC_FOR) Python 3.14a6 3619 (Renumber RESUME opcode from 149 to 128) Python 3.14a6 3620 (Optimize bytecode for all/any/tuple called on a genexp) + Python 3.14a7 3621 (Optimize LOAD_FAST opcodes into LOAD_FAST_BORROW) Python 3.15 will start with 3650 @@ -285,7 +286,7 @@ PC/launcher.c must also be updated. */ -#define PYC_MAGIC_NUMBER 3620 +#define PYC_MAGIC_NUMBER 3621 /* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes (little-endian) and then appending b'\r\n'. */ #define PYC_MAGIC_NUMBER_TOKEN \