]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:25 +0000 (12:44 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 10:44:25 +0000 (13:44 +0300)
commit9d65ea14ce5bf8894f6fa9c526894b828d6a5d87
tree0fe22792d58351ef270b88cdcf24c21698dc0f61
parentbe5e229aa6cb38f8b51fcddd7f812fdca57f92b5
[3.12] gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149) (GH-122265)

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