]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-79512: Fixed names and __module__ value of weakref classes (GH-93719)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 14 Jun 2022 04:18:03 +0000 (07:18 +0300)
committerGitHub <noreply@github.com>
Tue, 14 Jun 2022 04:18:03 +0000 (07:18 +0300)
commit8352e322e87ba39c71e578b65ad8ae156ca3e0c7
tree7a6923191a141b09b624a2f20dee35a5595d4223
parent6fd4c8ec7740523bb81191c013118d9d6959bc9d
gh-79512: Fixed names and __module__ value of weakref classes (GH-93719)

Classes ReferenceType, ProxyType and CallableProxyType have now correct
atrtributes __module__, __name__ and __qualname__.
It makes them (types, not instances) pickleable.
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