Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-bytecode for openSUSE:Factory 
checked in at 2026-11-24 14:41:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bytecode (Old)
 and      /work/SRC/openSUSE:Factory/.python-bytecode.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-bytecode"

Tue Nov 24 14:41:18 2026 rev:17 rq:1400270 version:0.19.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bytecode/python-bytecode.changes  
2026-08-24 12:16:58.059422682 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-bytecode.new.1340718/python-bytecode.changes 
    2026-11-24 14:41:22.620025263 +0100
@@ -1,0 +2,7 @@
+Mon Nov  9 20:29:58 UTC 2026 - Danilo Spinella <[email protected]>
+
+- Update to 0.19.1
+  * Fix an AssertionError in stack-size computation on Python 3.14
+    for code containing several async for loops with try blocks.
+
+-------------------------------------------------------------------

Old:
----
  bytecode-0.19.0.tar.gz

New:
----
  bytecode-0.19.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-bytecode.spec ++++++
--- /var/tmp/diff_new_pack.YK5zG9/_old  2026-11-24 14:41:23.633068333 +0100
+++ /var/tmp/diff_new_pack.YK5zG9/_new  2026-11-24 14:41:23.634068376 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-bytecode
-Version:        0.19.0
+Version:        0.19.1
 Release:        0
 Summary:        Python module to generate and modify bytecode
 License:        MIT

++++++ bytecode-0.19.0.tar.gz -> bytecode-0.19.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/PKG-INFO new/bytecode-0.19.1/PKG-INFO
--- old/bytecode-0.19.0/PKG-INFO        2026-08-21 23:17:01.427590800 +0200
+++ new/bytecode-0.19.1/PKG-INFO        2026-10-07 14:00:38.191678500 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: bytecode
-Version: 0.19.0
+Version: 0.19.1
 Summary: Python module to generate and modify bytecode
 Author-email: Victor Stinner <[email protected]>
 Maintainer-email: "Matthieu C. Dartiailh" <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/doc/changelog.rst 
new/bytecode-0.19.1/doc/changelog.rst
--- old/bytecode-0.19.0/doc/changelog.rst       2026-08-21 23:16:51.970085400 
+0200
+++ new/bytecode-0.19.1/doc/changelog.rst       2026-10-07 14:00:30.636969000 
+0200
@@ -1,6 +1,16 @@
 ChangeLog
 =========
 
+07-09-2026: Version 0.19.1
+--------------------------
+
+Bugfixes:
+
+- Fix an ``AssertionError`` in stack-size computation on Python 3.14 for code
+  containing several ``async for`` loops with ``try`` blocks. The jump argument
+  of ``END_ASYNC_FOR``, which only provides the source offset for monitoring, 
is
+  no longer followed. PR #214
+
 21-08-2026: Version 0.19.0
 --------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/src/bytecode/cfg.py 
new/bytecode-0.19.1/src/bytecode/cfg.py
--- old/bytecode-0.19.0/src/bytecode/cfg.py     2026-08-21 23:16:51.971335200 
+0200
+++ new/bytecode-0.19.1/src/bytecode/cfg.py     2026-10-07 14:00:30.637841700 
+0200
@@ -23,7 +23,15 @@
 import bytecode as _bytecode
 from bytecode.concrete import ConcreteInstr
 from bytecode.flags import CompilerFlags
-from bytecode.instr import UNSET, Instr, Label, SetLineno, TryBegin, TryEnd
+from bytecode.instr import (
+    MONITORING_ONLY_JUMP_OPS,
+    UNSET,
+    Instr,
+    Label,
+    SetLineno,
+    TryBegin,
+    TryEnd,
+)
 from bytecode.utils import PY313
 
 T = TypeVar("T", bound="BasicBlock")
@@ -367,7 +375,7 @@
 
             # For instructions with a jump first compute the stacksize 
required when the
             # jump is taken.
-            if instr.has_jump():
+            if instr.has_jump() and instr.opcode not in 
MONITORING_ONLY_JUMP_OPS:
                 effect = (
                     instr.pre_and_post_stack_effect(jump=True)
                     if self.common.check_pre_and_post
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/src/bytecode/instr.py 
new/bytecode-0.19.1/src/bytecode/instr.py
--- old/bytecode-0.19.0/src/bytecode/instr.py   2026-08-21 23:16:51.971335200 
+0200
+++ new/bytecode-0.19.1/src/bytecode/instr.py   2026-10-07 14:00:30.637841700 
+0200
@@ -110,6 +110,13 @@
     op for op in HAS_JUMP if op not in HAS_CONDITIONAL_JUMP
 }
 
+# Since Python 3.14 END_ASYNC_FOR carries a backward jump argument that only
+# provides the source offset for monitoring: execution never follows it, and
+# CPython's calculate_stackdepth skips this edge as well.
+MONITORING_ONLY_JUMP_OPS: Final[set[int]] = (
+    {_opcode.opmap["END_ASYNC_FOR"]} if PY314 else set()
+)
+
 IS_INSTR_FINAL: Final[set[int]] = HAS_UNCONDITIONAL_JUMP | {
     _opcode.opmap.get(n, -1)
     for n in (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/src/bytecode/version.py 
new/bytecode-0.19.1/src/bytecode/version.py
--- old/bytecode-0.19.0/src/bytecode/version.py 2026-08-21 23:17:01.242860600 
+0200
+++ new/bytecode-0.19.1/src/bytecode/version.py 2026-10-07 14:00:38.151714300 
+0200
@@ -5,7 +5,7 @@
 #: A namedtuple of the version info for the current release.
 _version_info = namedtuple("_version_info", "major minor micro status")
 
-parts = "0.19.0".split(".", 3)
+parts = "0.19.1".split(".", 3)
 version_info = _version_info(
     int(parts[0]),
     int(parts[1]),
@@ -16,4 +16,4 @@
 # Remove everything but the 'version_info' from this module.
 del namedtuple, _version_info, parts
 
-__version__ = "0.19.0"
+__version__ = "0.19.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/src/bytecode.egg-info/PKG-INFO 
new/bytecode-0.19.1/src/bytecode.egg-info/PKG-INFO
--- old/bytecode-0.19.0/src/bytecode.egg-info/PKG-INFO  2026-08-21 
23:17:01.399017300 +0200
+++ new/bytecode-0.19.1/src/bytecode.egg-info/PKG-INFO  2026-10-07 
14:00:38.175521400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: bytecode
-Version: 0.19.0
+Version: 0.19.1
 Summary: Python module to generate and modify bytecode
 Author-email: Victor Stinner <[email protected]>
 Maintainer-email: "Matthieu C. Dartiailh" <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/bytecode-0.19.0/src/bytecode.egg-info/scm_version.json 
new/bytecode-0.19.1/src/bytecode.egg-info/scm_version.json
--- old/bytecode-0.19.0/src/bytecode.egg-info/scm_version.json  2026-08-21 
23:17:01.268801200 +0200
+++ new/bytecode-0.19.1/src/bytecode.egg-info/scm_version.json  2026-10-07 
14:00:38.168827800 +0200
@@ -1,8 +1,8 @@
 {
-  "tag": "0.19.0",
+  "tag": "0.19.1",
   "distance": 0,
-  "node": "g9eea62692be09d07a454aa5244029cc5434096d7",
+  "node": "ga863feb900c07fff297488ffa8e3031a7775d551",
   "dirty": false,
   "branch": "HEAD",
-  "node_date": "2026-08-21"
+  "node_date": "2026-10-07"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bytecode-0.19.0/tests/test_cfg.py 
new/bytecode-0.19.1/tests/test_cfg.py
--- old/bytecode-0.19.0/tests/test_cfg.py       2026-08-21 23:16:51.972588300 
+0200
+++ new/bytecode-0.19.1/tests/test_cfg.py       2026-10-07 14:00:30.638769000 
+0200
@@ -982,6 +982,21 @@
         self.assertEqual(trigger({}, True), 99)
         self.assertEqual(trigger({"c": 1}, False), 99)
 
+    def test_stack_size_computation_consecutive_async_for_try_except(self):
+        async def test(a, b, d):  # pragma: no cover
+            async for x in a:
+                try:
+                    d[x] = 1
+                except Exception as e:
+                    d[x] = e
+            async for y in b:
+                try:
+                    d[y] = 2
+                except Exception as e:
+                    d[y] = e
+
+        self.check_stack_size(test)
+
     def test_stack_size_with_dead_code(self):
         # Simply demonstrate more directly the previously mentioned issue.
         def test(*args):  # pragma: no cover

Reply via email to