]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 25 Jul 2024 08:45:19 +0000 (11:45 +0300)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 08:45:19 +0000 (08:45 +0000)
commitdc07f65a53baf60d9857186294d3d7ba92d5606d
treead5e883c9e083b1f6af015b1fb2829a04abfad96
parentca0f7c447c83503bd760dc2eb6d1ea4b3558f8e9
gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149)

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.
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