public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-dill] rawhide: Backport upstream patch for python 3.15
Date: Sat, 30 May 2026 19:30:55 GMT	[thread overview]
Message-ID: <178016945560.1.8136820180506331167.rpms-python-dill-79983482295c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-dill
            Branch : rawhide
            Commit : 79983482295c5fab94a326812189d7202721d0fc
            Author : Tomáš Hrnčiar <thrnciar@redhat.com>
            Date   : 2026-05-25T13:18:11+02:00
            Stats  : +27/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-dill/c/79983482295c5fab94a326812189d7202721d0fc?branch=rawhide

            Log:
            Backport upstream patch for python 3.15

- Fixes: rhbz#2479741

---
diff --git a/755.patch b/755.patch
new file mode 100644
index 0000000..b8184fe
--- /dev/null
+++ b/755.patch
@@ -0,0 +1,24 @@
+From f22385f3e0b34ae9aac090de2d2c26586af0cc3d Mon Sep 17 00:00:00 2001
+From: mmckerns <mmckerns@caltech.edu>
+Date: Sat, 23 May 2026 17:52:30 -0400
+Subject: [PATCH] handle missing co_lntab in 3.15.0b1
+
+---
+ dill/_dill.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/dill/_dill.py b/dill/_dill.py
+index 27ab56c6..da8aee22 100644
+--- a/dill/_dill.py
++++ b/dill/_dill.py
+@@ -1187,8 +1187,8 @@ def save_code(pickler, obj):
+         with warnings.catch_warnings():
+             if not OLD312a7: # issue 597
+                 warnings.filterwarnings('ignore', category=DeprecationWarning)
+-            args = (
+-                obj.co_lnotab, # for < python 3.10 [not counted in args]
++            args = (                            # [not counted in args]
++                getattr(obj, 'co_lnotab', b''), # for < python 3.10; 3.15.0b1+
+                 obj.co_argcount, obj.co_posonlyargcount,
+                 obj.co_kwonlyargcount, obj.co_nlocals, obj.co_stacksize,
+                 obj.co_flags, obj.co_code, obj.co_consts, obj.co_names,

diff --git a/python-dill.spec b/python-dill.spec
index 595d209..fd22723 100644
--- a/python-dill.spec
+++ b/python-dill.spec
@@ -10,6 +10,9 @@ License: BSD-3-Clause
 URL: https://github.com/uqfoundation/dill
 Source: %{pypi_source dill}
 
+# python 3.15 compatibility
+Patch:  https://github.com/uqfoundation/dill/pull/755.patch
+
 BuildArch: noarch
 
 BuildRequires: python3-devel

                 reply	other threads:[~2026-05-30 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178016945560.1.8136820180506331167.rpms-python-dill-79983482295c@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox