]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-79512: Fixed names and __module__ value of weakref classes (GH-93719) ...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 21 Jun 2022 19:36:09 +0000 (22:36 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 19:36:09 +0000 (22:36 +0300)
commit54250e73538cf498028f73b9c9a4905294def622
tree82da096a506d11bcc99d93f5e33644d32a2ed26f
parent46d0e1c06e063d0d239dcef60bcafadcfcf2eed1
[3.10] gh-79512: Fixed names and __module__ value of weakref classes (GH-93719) (GH-94071)

Classes ReferenceType, ProxyType and CallableProxyType have now correct
atrtributes __module__, __name__ and __qualname__.
It makes them (types, not instances) pickleable.
(cherry picked from commit 8352e322e87ba39c71e578b65ad8ae156ca3e0c7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_weakref.py
Misc/NEWS.d/next/Library/2022-06-11-13-32-17.gh-issue-79512.A1KTDr.rst [new file with mode: 0644]
Objects/weakrefobject.c