]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117281: Change weakref repr() to fully qualified name (#117285)
authorVictor Stinner <vstinner@python.org>
Wed, 3 Apr 2024 10:18:05 +0000 (12:18 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 10:18:05 +0000 (12:18 +0200)
commit8ef98924d304b5c9430e23f8170e2c32ec3a9920
treedc8cdd0dc2bed56c3c194cfeb11c2f4c83812542
parent8987a5c809343ae0dd2b8e607bf2c32a87773127
gh-117281: Change weakref repr() to fully qualified name (#117285)

Use the fully qualified type name in repr() of weakref.ref and
weakref.proxy types.

Fix a crash in proxy_repr() when the reference is dead.

Add also test_ref_repr() and test_proxy_repr().
Lib/test/test_weakref.py
Objects/weakrefobject.c