🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #1642

Bug#1147116: marked as done (python-bytecode: FTBFS against python 3.15rc2)

#1642
From: Debian Bug Tracking System
Date: Sat, 24 Oct 2026 20:40
802 lines
33603 bytes
This is a multi-part message in MIME format...

------------=_1792874222-361514-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Sat, 24 Oct 2026 20:35:56 +0000
with message-id <E1xKiT6-00000007jwt-1yyI@fasolo.debian.org>
and subject line Bug#1147116: fixed in python-bytecode 0.19.1-1
has caused the Debian Bug report #1147116,
regarding python-bytecode: FTBFS against python 3.15rc2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1147116: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1147116
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1792874222-361514-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 7 Sep 2026 20:53:58 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-117.7 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,GMAIL,HAS_PACKAGE,
	MD5_SHA1_SUM,MURPHY_FINANCE10,SPF_HELO_NONE,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 232; hammy, 150; neutral, 397; spammy,
	0. spammytokens:
	hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
	0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
	0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <maxy@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:57416)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <maxy@debian.org>)
	id 1x3gLm-007MkT-13
	for submit@bugs.debian.org;
	Mon, 07 Sep 2026 20:53:58 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
	Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
	Content-Description:In-Reply-To:References;
	bh=0na3MOOxRCegYsa8x2eaeKLWUTWd8IRYZrc581nIMNY=; b=KSoStDLwHrHrmAgs9ped+VmtEs
	Ako7oLFrpX8mmYNAwdlYVoeEynSOw63PeDAc6R13zWmrT1aV23KNnDNhv8jvi9grmpmyXu5Jlvn9Y
	4h2NmG51hnmM03iX2v8hZwSB65an6fB/eZxnKmy+u9jCZgGBJTNocp2M3CW7B6PZIc8urMuOLOXTi
	IWqrZO+AWdwdrY2+FwIJXAk6AKdiStVpkS0khr8uK36OoPmYRJZdWaNY2gyWCe5Q5l6UJsNzFy6oF
	sqJa40dk4DpiNTgx2gvXEOgifZtTFBwfKoSdNqGaH2hGwngdlZIPIxmBLBmhRt5kpNqziw8O8wjXi
	8RhaOs8A==;
Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <maxy@debian.org>)
	id 1x3gLi-001mOo-1G
	for submit@bugs.debian.org;
	Mon, 07 Sep 2026 20:53:55 +0000
Date: Mon, 7 Sep 2026 22:53:53 +0200
From: Maximiliano Curia <maxy@debian.org>
To: submit@bugs.debian.org
Subject: python-bytecode: FTBFS against python 3.15rc2
Message-ID: <ap8kYS9qAYESyQmW@hecuba.gnuservers.com.ar>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="6yc/Rsa/OCYSGJY6"
Content-Disposition: inline
X-Debian-User: maxy
Delivered-To: submit@bugs.debian.org

--6yc/Rsa/OCYSGJY6
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Package: src:python-bytecode
Version: 0.17.0-1
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-bytecode fails to build from source [1]. 

The problem can be solved with upstream commit
4bff24f022bb2c6bfe1c368821180534140ce0bb: feat: add support for CPython
3.15 [2].

I've applied the upstream fix in the sandbox [3] to verify that it
builds successfully, please consider applying the patch to support the
upcoming 3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4480850/
[2]: https://github.com/MatthieuDartiailh/bytecode/commit/4bff24f022bb2c6bfe1c368821180534140ce0bb
[3]: https://debusine.debian.net/debian/r-python-python3.15/

-- 
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/

--6yc/Rsa/OCYSGJY6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename=feat-add-support-for-CPython-3.15.patch
Content-Transfer-Encoding: quoted-printable

=46rom: Gabriele N. Tornetta <P403n1x87@users.noreply.github.com>
Date: Fri, 21 Aug 2026 22:02:56 +0100
Subject: feat: add support for CPython 3.15 (#192)

* feat: add support for CPython 3.15

* beta1 updates

* add fallback version for shallow clones

* fix typing

* add 3.15 framework tests run

* IMPORT_NAME fix

* address review comments

---------

Co-authored-by: Matthieu Dartiailh <m.dartiailh@gmail.com>
Origin: upstream, https://github.com/MatthieuDartiailh/bytecode/commit/4bff=
24f022bb2c6bfe1c368821180534140ce0bb

Index: python-bytecode/src/bytecode/instr.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/src/bytecode/instr.py
+++ python-bytecode/src/bytecode/instr.py
@@ -13,7 +13,7 @@ except ImportError:
     from typing_extensions import TypeGuard  # type: ignore
=20
 import bytecode as _bytecode
-from bytecode.utils import PY311, PY312, PY313, PY314
+from bytecode.utils import PY311, PY312, PY313, PY314, PY315
=20
 # --- Instruction argument tools and
=20
@@ -35,7 +35,11 @@ BITFLAG_OPCODES =3D (
     )
 )
=20
-BITFLAG2_OPCODES =3D (_opcode.opmap["LOAD_SUPER_ATTR"],) if PY312 else ()
+BITFLAG2_OPCODES =3D (
+    (_opcode.opmap["LOAD_SUPER_ATTR"], _opcode.opmap["IMPORT_NAME"])
+    if PY315
+    else ((_opcode.opmap["LOAD_SUPER_ATTR"],) if PY312 else ())
+)
=20
 # Binary op opcode which has a dedicated arg
 BINARY_OPS =3D (_opcode.opmap["BINARY_OP"],) if PY311 else ()
@@ -48,6 +52,9 @@ INTRINSIC =3D INTRINSIC_1OP + INTRINSIC_2O
 # Small integer related opcode
 SMALL_INT_OPS =3D (_opcode.opmap["LOAD_SMALL_INT"],) if PY314 else ()
=20
+# Opcodes that gained a cache-only argument in 3.15 (arg is always 0 and n=
ot user-visible)
+CACHE_ONLY_ARG_OPCODES =3D (_opcode.opmap["GET_ITER"],) if PY315 else ()
+
 # Special method loading related opcodes
 SPECIAL_OPS =3D (_opcode.opmap["LOAD_SPECIAL"],) if PY314 else ()
=20
@@ -218,6 +225,15 @@ class CommonConstant(enum.IntEnum):
     BUILTIN_ALL =3D 3
     BUILTIN_ANY =3D 4
=20
+    if PY315:
+        BUILTIN_LIST =3D 5
+        BUILTIN_SET =3D 6
+        CONSTANT_NONE =3D 7
+        CONSTANT_EMPTY_STR =3D 8
+        CONSTANT_TRUE =3D 9
+        CONSTANT_FALSE =3D 10
+        CONSTANT_MINUS_ONE =3D 11
+
=20
 # This make type checking happy but means it won't catch attempt to manipu=
late an unset
 # statically. We would need guard on object attribute narrowed down throug=
h methods
@@ -368,7 +384,7 @@ STATIC_STACK_EFFECTS: Dict[str, Tuple[in
     "DUP_TOP": (-1, 2),
     "DUP_TOP_TWO": (-2, 4),
     "GET_LEN": (-1, 2),
-    "GET_ITER": (-1, 1),
+    "GET_ITER": (-1, 2) if PY315 else (-1, 1),
     "GET_YIELD_FROM_ITER": (-1, 1),
     "GET_AWAITABLE": (-1, 1),
     "GET_AITER": (-1, 1),
@@ -448,7 +464,14 @@ DYNAMIC_STACK_EFFECTS: Dict[
     "MAP_ADD": lambda effect, arg, jump: (-arg, arg - 2),
     "FORMAT_VALUE": lambda effect, arg, jump: (effect - 1, 1),
     # FOR_ITER needs TOS to be an iterator, hence a prerequisite of 1 on t=
he stack
-    "FOR_ITER": lambda effect, arg, jump: (effect, 0) if jump else (-1, 2),
+    # In 3.15, GET_ITER pushes (iter, null_or_index) as two stack slots, so
+    # FOR_ITER now requires both on the stack (-2) and always pushes them =
back
+    # plus one more slot (+3): the next value when continuing, or a marker
+    # consumed by END_FOR when exhausted before POP_ITER cleans up (iter,
+    # null_or_index). Net effect is +1 in both cases, matching dis.stack_e=
ffect.
+    "FOR_ITER": (lambda __effect, __arg, __jump: (-2, 3))
+    if PY315
+    else (lambda effect, __arg, jump: (effect, 0) if jump else (-1, 2)),
     "BUILD_INTERPOLATION": lambda effect, arg, jump: (-(2 + (arg & 1)), 1),
     **{
         # Instr(UNPACK_* , n) pops 1 and pushes n
@@ -843,6 +866,9 @@ class BaseInstr(Generic[A]):
                 "Only base opcodes are supported"
             )
=20
+        if arg is UNSET and opcode in CACHE_ONLY_ARG_OPCODES:
+            arg =3D 0  # type: ignore
+
         self._check_arg(name, opcode, arg)
=20
         self._name =3D name
Index: python-bytecode/src/bytecode/utils.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/src/bytecode/utils.py
+++ python-bytecode/src/bytecode/utils.py
@@ -6,3 +6,4 @@ PY311: Final[bool] =3D sys.version_info >=3D
 PY312: Final[bool] =3D sys.version_info >=3D (3, 12)
 PY313: Final[bool] =3D sys.version_info >=3D (3, 13)
 PY314: Final[bool] =3D sys.version_info >=3D (3, 14)
+PY315: Final[bool] =3D sys.version_info >=3D (3, 15)
Index: python-bytecode/tests/test_bytecode.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/tests/test_bytecode.py
+++ python-bytecode/tests/test_bytecode.py
@@ -7,8 +7,8 @@ import types
 import unittest
=20
 from bytecode import Bytecode, ConcreteInstr, FreeVar, Instr, Label, SetLi=
neno
-from bytecode.instr import BinaryOp, FormatValue, InstrLocation
-from bytecode.utils import PY310, PY311, PY312, PY313, PY314
+from bytecode.instr import BinaryOp, CommonConstant, FormatValue, InstrLoc=
ation
+from bytecode.utils import PY310, PY311, PY312, PY313, PY314, PY315
=20
 from . import TestCase, get_code
=20
@@ -169,6 +169,18 @@ class BytecodeTests(TestCase):
         label_else =3D Label()
         label_exit =3D Label()
         if PY314:
+
+            def _ret_none(lineno):
+                return (
+                    Instr(
+                        "LOAD_COMMON_CONSTANT",
+                        CommonConstant.CONSTANT_NONE,
+                        lineno=3Dlineno,
+                    )
+                    if PY315
+                    else Instr("LOAD_CONST", None, lineno=3Dlineno)
+                )
+
             self.assertInstructionListEqual(
                 bytecode,
                 [
@@ -179,12 +191,12 @@ class BytecodeTests(TestCase):
                     Instr("NOT_TAKEN", lineno=3D1),
                     Instr("LOAD_SMALL_INT", 1, lineno=3D2),
                     Instr("STORE_NAME", "x", lineno=3D2),
-                    Instr("LOAD_CONST", None, lineno=3D2),
+                    _ret_none(2),
                     Instr("RETURN_VALUE", lineno=3D2),
                     label_else,
                     Instr("LOAD_SMALL_INT", 2, lineno=3D4),
                     Instr("STORE_NAME", "x", lineno=3D4),
-                    Instr("LOAD_CONST", None, lineno=3D4),
+                    _ret_none(4),
                     Instr("RETURN_VALUE", lineno=3D4),
                 ],
             )
@@ -341,7 +353,11 @@ class BytecodeTests(TestCase):
             ]
             + (
                 [
-                    Instr("LOAD_CONST", None, lineno=3D3),
+                    Instr(
+                        "LOAD_COMMON_CONSTANT" if PY315 else "LOAD_CONST",
+                        CommonConstant.CONSTANT_NONE if PY315 else None,
+                        lineno=3D3,
+                    ),
                     Instr("RETURN_VALUE", lineno=3D3),
                 ]
                 if PY314
Index: python-bytecode/tests/test_cfg.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/tests/test_cfg.py
+++ python-bytecode/tests/test_cfg.py
@@ -20,7 +20,8 @@ from bytecode import (
     dump_bytecode,
 )
 from bytecode.concrete import OFFSET_AS_INSTRUCTION
-from bytecode.utils import PY311, PY312, PY313, PY314
+from bytecode.instr import CommonConstant
+from bytecode.utils import PY311, PY312, PY313, PY314, PY315
=20
 from . import TestCase, disassemble as _disassemble
=20
@@ -34,15 +35,20 @@ def disassemble(
         # drop LOAD_CONST+RETURN_VALUE to only keep 2 instructions,
         # to make unit tests shorter
         block =3D blocks[-1]
-        test =3D (
-            (block[-1].name =3D=3D "RETURN_CONST" and block[-1].arg is Non=
e)
-            if PY312 and not PY314
-            else (
+        if PY315:
+            test =3D (
+                block[-2].name =3D=3D "LOAD_COMMON_CONSTANT"
+                and block[-2].arg =3D=3D CommonConstant.CONSTANT_NONE
+                and block[-1].name =3D=3D "RETURN_VALUE"
+            )
+        elif PY312 and not PY314:
+            test =3D block[-1].name =3D=3D "RETURN_CONST" and block[-1].ar=
g is None
+        else:
+            test =3D (
                 block[-2].name =3D=3D "LOAD_CONST"
                 and block[-2].arg is None
                 and block[-1].name =3D=3D "RETURN_VALUE"
             )
-        )
         if not test:
             raise ValueError(
                 "unable to find implicit RETURN_VALUE <None>: %s" % block[=
-2:]
Index: python-bytecode/tests/test_code.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/tests/test_code.py
+++ python-bytecode/tests/test_code.py
@@ -84,6 +84,17 @@ class CodeTests(TestCase):
             function=3DTrue,
         )
=20
+    def test_import(self):
+        # In 3.15 IMPORT_NAME gained lazy/eager flag bits packed into its =
arg
+        # (like LOAD_SUPER_ATTR), which a naive plain-name decode misses.
+        self.check(
+            """
+            import os
+            import os.path as osp
+            from os import path
+        """
+        )
+
=20
 if __name__ =3D=3D "__main__":
     unittest.main()  # pragma: no cover
Index: python-bytecode/tests/test_concrete.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/tests/test_concrete.py
+++ python-bytecode/tests/test_concrete.py
@@ -21,7 +21,8 @@ from bytecode import (
     SetLineno,
 )
 from bytecode.concrete import OFFSET_AS_INSTRUCTION, ExceptionTableEntry
-from bytecode.utils import PY310, PY311, PY312, PY313, PY314
+from bytecode.instr import CommonConstant
+from bytecode.utils import PY310, PY311, PY312, PY313, PY314, PY315
=20
 from . import TestCase, get_code
=20
@@ -250,30 +251,43 @@ class ConcreteBytecodeTests(TestCase):
     def test_attr(self):
         code_obj =3D get_code("x =3D 5")
         code =3D ConcreteBytecode.from_code(code_obj)
-        self.assertEqual(code.consts, [5, None])
+        self.assertEqual(code.consts, [5] if PY315 else [5, None])
         self.assertEqual(code.names, ["x"])
         self.assertEqual(code.varnames, [])
         self.assertEqual(code.freevars, [])
         self.assertInstructionListEqual(
             list(code),
-            ([ConcreteInstr("RESUME", 0, lineno=3D0)] if PY311 else [])
-            + [
-                ConcreteInstr("LOAD_CONST", 0, lineno=3D1),
-                ConcreteInstr("STORE_NAME", 0, lineno=3D1),
-            ]
-            + (
+            (
                 [
-                    ConcreteInstr("LOAD_SMALL_INT", 1, lineno=3D1),
+                    ConcreteInstr("RESUME", 0, lineno=3D0),
+                    ConcreteInstr("CACHE", 0, lineno=3D0),
+                    ConcreteInstr("LOAD_SMALL_INT", 5, lineno=3D1),
+                    ConcreteInstr("STORE_NAME", 0, lineno=3D1),
+                    ConcreteInstr("LOAD_COMMON_CONSTANT", 7, lineno=3D1),
                     ConcreteInstr("RETURN_VALUE", lineno=3D1),
                 ]
-                if PY314
+                if PY315
                 else (
-                    [ConcreteInstr("RETURN_CONST", 1, lineno=3D1)]
-                    if PY312
-                    else [
-                        ConcreteInstr("LOAD_CONST", 1, lineno=3D1),
-                        ConcreteInstr("RETURN_VALUE", lineno=3D1),
+                    ([ConcreteInstr("RESUME", 0, lineno=3D0)] if PY311 els=
e [])
+                    + [
+                        ConcreteInstr("LOAD_CONST", 0, lineno=3D1),
+                        ConcreteInstr("STORE_NAME", 0, lineno=3D1),
                     ]
+                    + (
+                        [
+                            ConcreteInstr("LOAD_SMALL_INT", 1, lineno=3D1),
+                            ConcreteInstr("RETURN_VALUE", lineno=3D1),
+                        ]
+                        if PY314
+                        else (
+                            [ConcreteInstr("RETURN_CONST", 1, lineno=3D1)]
+                            if PY312
+                            else [
+                                ConcreteInstr("LOAD_CONST", 1, lineno=3D1),
+                                ConcreteInstr("RETURN_VALUE", lineno=3D1),
+                            ]
+                        )
+                    )
                 )
             ),
         )
@@ -329,7 +343,9 @@ class ConcreteBytecodeTests(TestCase):
             ]
             + (
                 [
-                    ConcreteInstr("LOAD_CONST", 1),
+                    ConcreteInstr("LOAD_COMMON_CONSTANT", CommonConstant.C=
ONSTANT_NONE)
+                    if PY315
+                    else ConcreteInstr("LOAD_CONST", 1),
                     ConcreteInstr("RETURN_VALUE"),
                 ]
                 if PY314
@@ -466,7 +482,9 @@ class ConcreteBytecodeTests(TestCase):
             ]
             + (
                 [
-                    ConcreteInstr("LOAD_CONST", 1),
+                    ConcreteInstr("LOAD_COMMON_CONSTANT", CommonConstant.C=
ONSTANT_NONE)
+                    if PY315
+                    else ConcreteInstr("LOAD_CONST", 1),
                     ConcreteInstr("RETURN_VALUE"),
                 ]
                 if PY314
@@ -824,6 +842,32 @@ class ConcreteFromCodeTests(TestCase):
=20
         # without EXTENDED_ARG
         concrete =3D ConcreteBytecode.from_code(code_obj)
+        if PY315:
+            ann_code =3D concrete.consts[0]
+            func_code =3D concrete.consts[1]
+            expected_py315 =3D [
+                ConcreteInstr("RESUME", 0, lineno=3D0),
+                ConcreteInstr("CACHE", 0, lineno=3D0),
+                ConcreteInstr("LOAD_CONST", 0, lineno=3D1),
+                ConcreteInstr("MAKE_FUNCTION", lineno=3D1),
+                ConcreteInstr("LOAD_CONST", 1, lineno=3D1),
+                ConcreteInstr("MAKE_FUNCTION", lineno=3D1),
+                ConcreteInstr("SET_FUNCTION_ATTRIBUTE", 16, lineno=3D1),
+                ConcreteInstr("STORE_NAME", 0, lineno=3D1),
+                ConcreteInstr("LOAD_COMMON_CONSTANT", 7, lineno=3D1),
+                ConcreteInstr("RETURN_VALUE", lineno=3D1),
+            ]
+            expected_consts =3D [ann_code, func_code]
+            self.assertSequenceEqual(concrete.names, ["foo"])
+            self.assertSequenceEqual(concrete.consts, expected_consts)
+            self.assertInstructionListEqual(list(concrete), expected_py315)
+            concrete =3D ConcreteBytecode.from_code(code_obj, extended_arg=
=3DTrue)
+            ann_code =3D concrete.consts[0]
+            func_code =3D concrete.consts[1]
+            self.assertEqual(concrete.names, ["foo"])
+            self.assertEqual(concrete.consts, expected_consts)
+            self.assertInstructionListEqual(list(concrete), expected_py315)
+            return
         if PY314:
             ann_code =3D concrete.consts[0]
             func_code =3D concrete.consts[1]
Index: python-bytecode/tests/test_misc.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- python-bytecode.orig/tests/test_misc.py
+++ python-bytecode/tests/test_misc.py
@@ -8,7 +8,7 @@ import unittest
 import bytecode
 from bytecode import BasicBlock, Bytecode, ControlFlowGraph, Instr, Label
 from bytecode.concrete import OFFSET_AS_INSTRUCTION
-from bytecode.utils import PY311, PY312, PY313, PY314
+from bytecode.utils import PY311, PY312, PY313, PY314, PY315
=20
 from . import disassemble
=20
@@ -529,7 +529,33 @@ label_instr13:
         code =3D code.to_concrete_bytecode()
=20
         # without line numbers
-        if PY314:
+        if PY315:
+            # RESUME gained a CACHE entry in 3.15, shifting all offsets by=
 2
+            expected =3D """
+  0    RESUME 0
+  2    CACHE 0
+  4    LOAD_FAST_BORROW 0
+  6    LOAD_SMALL_INT 1
+  8    COMPARE_OP 88
+ 10    CACHE 0
+ 12    POP_JUMP_IF_FALSE 3
+ 14    CACHE 0
+ 16    NOT_TAKEN
+ 18    LOAD_SMALL_INT 1
+ 20    RETURN_VALUE
+ 22    LOAD_FAST_BORROW 0
+ 24    LOAD_SMALL_INT 2
+ 26    COMPARE_OP 88
+ 28    CACHE 0
+ 30    POP_JUMP_IF_FALSE 3
+ 32    CACHE 0
+ 34    NOT_TAKEN
+ 36    LOAD_SMALL_INT 2
+ 38    RETURN_VALUE
+ 40    LOAD_SMALL_INT 3
+ 42    RETURN_VALUE
+"""
+        elif PY314:
             # COMPARE_OP use the 4 lowest bits as a cache
             expected =3D """
   0    RESUME 0
@@ -635,7 +661,32 @@ label_instr13:
         self.check_dump_bytecode(code, expected.lstrip("\n"))
=20
         # with line numbers
-        if PY314:
+        if PY315:
+            expected =3D """
+L.  1   0: RESUME 0
+        2: CACHE 0
+L.  2   4: LOAD_FAST_BORROW 0
+        6: LOAD_SMALL_INT 1
+        8: COMPARE_OP 88
+       10: CACHE 0
+       12: POP_JUMP_IF_FALSE 3
+       14: CACHE 0
+       16: NOT_TAKEN
+L.  3  18: LOAD_SMALL_INT 1
+       20: RETURN_VALUE
+L.  4  22: LOAD_FAST_BORROW 0
+       24: LOAD_SMALL_INT 2
+       26: COMPARE_OP 88
+       28: CACHE 0
+       30: POP_JUMP_IF_FALSE 3
+       32: CACHE 0
+       34: NOT_TAKEN
+L.  5  36: LOAD_SMALL_INT 2
+       38: RETURN_VALUE
+L.  6  40: LOAD_SMALL_INT 3
+       42: RETURN_VALUE
+"""
+        elif PY314:
             expected =3D """
 L.  1   0: RESUME 0
 L.  2   2: LOAD_FAST_BORROW 0

--6yc/Rsa/OCYSGJY6--

------------=_1792874222-361514-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1147116-close) by bugs.debian.org; 24 Oct 2026 20:35:59 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-113.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,
	MD5_SHA1_SUM,PGPSIGNATURE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 104; hammy, 150; neutral, 150; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo.
Return-path: <envelope@ftp-master.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:44254)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xKiTA-001Vth-1C
	for 1147116-close@bugs.debian.org;
	Sat, 24 Oct 2026 20:35:59 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
	by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xKiT7-005bFK-26
	for 1147116-close@bugs.debian.org;
	Sat, 24 Oct 2026 20:35:57 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type:
	Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
	:Content-Description:In-Reply-To:References;
	bh=bzQwrBmJHnlTSaU5we9KbrY2MzC78yIcWOjiHVSETxQ=; b=D8M79lfr0NlIU7Q7PtYNn+2p9s
	NuJhgSjMU7NVHyN99ZTDIBGrEF2T05zn4P8IvzRPMT2ijYqdwUVMK1BSI4GdYfAWzFoalG7MMT8Mz
	MtDF0mHewYK6q1PGlkLIjOzVybcCdocKIBjK3Eq0I26FFldpVsy0L5cfaRSQoZcJFOHtcKQCd4a+S
	+h4/WIWQsq/vugiyqiQhQYZnXlSLEw2cNKBfXNGiJSv5nytPXOG0CIl4o479F45nsemdd7h1fP0x3
	r6cO33gsxqRmbl094S29LiFq1g2+DnNP5lA0ohuJDpl0kdBUeCu5fCKLaON0HEs2ZE1diBym4TnUZ
	o5cde6SA==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xKiT6-00000007jwt-1yyI;
	Sat, 24 Oct 2026 20:35:56 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Colin Watson <cjwatson@debian.org>
To: 1147116-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: python-bytecode
Debian: DAK
Debian-Changes: python-bytecode_0.19.1-1_source.changes
Debian-Source: python-bytecode
Debian-Version: 0.19.1-1
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1147116: fixed in python-bytecode 0.19.1-1
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature";
 boundary="===============4214201127575123859=="
Message-Id: <E1xKiT6-00000007jwt-1yyI@fasolo.debian.org>
Date: Sat, 24 Oct 2026 20:35:56 +0000

--===============4214201127575123859==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Source: python-bytecode
Source-Version: 0.19.1-1
Done: Colin Watson <cjwatson@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-bytecode, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1147116@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-bytecode packa=
ge)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 24 Oct 2026 21:06:47 +0100
Source: python-bytecode
Architecture: source
Version: 0.19.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1147116
Changes:
 python-bytecode (0.19.1-1) unstable; urgency=3Dmedium
 .
   * Team upload.
   * New upstream release:
     - Add support for Python 3.15 (closes: #1147116).
   * Drop "Rules-Requires-Root: no", default as of dpkg-dev 1.22.13.
   * Drop "Priority: optional", default as of dpkg-dev 1.22.13.
   * Standards-Version: 4.7.4.
Checksums-Sha1:
 7ae3f3b9d8e152bc1b1382a9f12f5a30d2b03fbe 3014 python-bytecode_0.19.1-1.dsc
 f493be1c05c2d02d80b348fc280f9b9d52596730 102024 python-bytecode_0.19.1.orig.=
tar.gz
 d54ab8806fd7ce4dd186e1360359cf66a1c2d91b 9672 python-bytecode_0.19.1-1.debia=
n.tar.xz
 1f8ca06065b83ca134bd2c8d7b6f882377c83d3c 245172 python-bytecode_0.19.1-1.git=
.tar.xz
 b529510a8d1f13b315fe76433a65956a79db8e13 17768 python-bytecode_0.19.1-1_sour=
ce.buildinfo
Checksums-Sha256:
 3c391ab5fea3c3a7895e2d85834f42ba73c125a464fba4c9b13560f90687232a 3014 python=
-bytecode_0.19.1-1.dsc
 3e3af79e64b53ae1ccea75c30dc61b91d4d88fc393fab699e6bd4dc747964e48 102024 pyth=
on-bytecode_0.19.1.orig.tar.gz
 3fec366c9671fabfbecda6a8982dc6ddd3d6a8a5cc7cb80c9ca2220b7f246bcd 9672 python=
-bytecode_0.19.1-1.debian.tar.xz
 eb38ded0265d0d8e48ac5f2877e89435b1a52d3c28cfa7ac560015f9d34f037a 245172 pyth=
on-bytecode_0.19.1-1.git.tar.xz
 eea98a39ed9d90ca6f3222352055edc7f1d0da9f0521eaa004aaa03c087d833c 17768 pytho=
n-bytecode_0.19.1-1_source.buildinfo
Files:
 36703dbc9cb74eae45428dbe6aed7941 3014 python optional python-bytecode_0.19.1=
-1.dsc
 84693b4083c26e04f90850b9f4dd6283 102024 python optional python-bytecode_0.19=
.1.orig.tar.gz
 f343e85c0f5123f2d21b7c9c66f73efa 9672 python optional python-bytecode_0.19.1=
-1.debian.tar.xz
 02dcbb5dea88c1d39edfa948b6a7b3fe 245172 python None python-bytecode_0.19.1-1=
.git.tar.xz
 44102ef9393aadafaf1655e3ea045839 17768 python optional python-bytecode_0.19.=
1-1_source.buildinfo
Git-Tag-Info: tag=3D55c680a5abd2bb11bad6789f34ffcb1b51ce7532 fp=3Dac0a4ff1261=
1b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrdEDUACgkQYG0ITkaD
wHn5jBAAoHPQ4YzLhXhT/bS1VP6fINHkKSSyj8uHUt0MNxgfwn1CP1urGgiqCrrl
aVaLmSyOqljJlcExlbQYnLW/z27MSRkufLlMZSNYJVbd/3NTlhU4YsDJBEeMrpFf
BCLd+T018Nnr43oSKApKqigAIyqZBQeIx7x37kUlkHRDusa1IwcKo8OvPCzfJ372
2L2sHnWnh27yX9VASUI4SFFDU+GR5QhYvV6xvqwHPP2JPWGtKB2NumhAcR4pFJoi
xqBO+Yh+B1mmZCM5aF1CNU3NM1hg1PaRLynQ9V1f2bdVtDoYgLYrE8YB5njASKg0
sUuSmJhy+SyshYjg6/+HyFnV806b4VZeGzyXGgFbZG7zy/mqzII6Eq/0Dp+ZsxnM
MKBS6j0oLHAFlsPCZude5F2F1yescrOBVlQRc/KUzBi/1qpI161hi2Cey9lrUyLL
C1TjLW9kVt640bxZilxAd+UKVx7u8AMTTl7fJpluUtOlsX3SwD4kuWFwdQfOWVNd
/QoJsE31JyxUkKY/hzv98UhUrGLI3O9vMWRJ7xz3qv1Tq9JExGVYAU8dLCD0kL+i
Nhl5RmVvCWs/+CpjKmzDqHErU+vRIAOLHZhLHfrWS1dpaOOppviYXYh+IWjRag7R
fPU082CA+NrozUEA7MaPRas2CQMbVTf6jrTCbtmTZrt0UnkVE1M=3D
=3DTnhR
-----END PGP SIGNATURE-----


--===============4214201127575123859==
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCat0WrAAKCRCb9qggYcy5
IU3AAP9m48g8Ra8Pep/hp9uujJ8CBvpfVF6zS1I8GjVvcJgnHgD+JUYil9dmamFW
ESZspr1pP8tTRqO3DQdz8K6dREK7Vwg=
=aTio
-----END PGP SIGNATURE-----

--===============4214201127575123859==--
------------=_1792874222-361514-0--
Technical Details
Message-ID: <NRQH0-7EW8-21@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NRQH0-7EW8-23@gated-at.bofh.it> <NAOBz-fPqt-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: "Debian Bug Tracking System" <owner@bugs.debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1147116: marked as done (python-bytecode: FTBFS against  python 3.15rc2)
Date: Sat, 24 Oct 2026 22:40:02 +0200
Message-ID: <NRQH0-7EW8-21@gated-at.bofh.it>
References: <NRQH0-7EW8-23@gated-at.bofh.it> <NAOBz-fPqt-9@gated-at.bofh.it>
X-Original-To: Colin Watson <cjwatson@debian.org>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Sat Oct 24 20:37:15 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -2
MIME-Version: 1.0
X-Mailer: MIME-tools 5.510 (Entity 5.510)
X-Debian-Pr-Message: closed 1147116
X-Debian-Pr-Package: src:python-bytecode
X-Debian-Pr-Keywords: forky ftbfs patch sid
X-Debian-Pr-Source: python-bytecode
Reply-To: 1147116@bugs.debian.org
Content-Type: multipart/mixed; boundary="----------=_1792874222-361514-0"
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/835945
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 802
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 24 Oct 2026 20:37:02 +0000
X-Original-Message-ID: <handler.1147116.D1147116.1792874159360965.ackdone@bugs.debian.org>
X-Original-References: <E1xKiT6-00000007jwt-1yyI@fasolo.debian.org>
 <ap8kYS9qAYESyQmW@hecuba.gnuservers.com.ar>