]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Jul 2024 10:44:55 +0000 (12:44 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 10:44:55 +0000 (13:44 +0300)
commit984f8aaa2f364e252248a244e915656e1c6f329c
treeac8e4e84c4c78b7b531e133b7b008e663c539c00
parent977c7992860a58f7a48bcdac53a99e67e5bb9b9c
[3.13] gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149) (GH-122264)

Serializing objects with complex __qualname__ (such as unbound methods and
nested classes) by name no longer involves serializing parent objects by value
in pickle protocols < 4.
(cherry picked from commit dc07f65a53baf60d9857186294d3d7ba92d5606d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/pickle.py
Lib/test/pickletester.py
Misc/NEWS.d/next/Library/2024-07-23-09-14-44.gh-issue-82951.-F5p5A.rst [new file with mode: 0644]
Modules/_pickle.c