This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author OhBonsai
Recipients OhBonsai, corona10, taleinat
Date 2020-04-25.03:05:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587783917.63.0.137882074418.issue40383@roundup.psfhosted.org>
In-reply-to
Content
Same with #21861 #27541

hard-coding in https://github.com/python/cpython/blob/master/Objects/weakrefobject.c#L162  __repr__ 

----- Reproducing
>>> import weakref
>>> class ExtendRef(weakref.ref): pass
... 
>>> class Obj(): pass
... 
>>> eref = ExtendRef(Obj())
>>> eref
<weakref at 0x1046bc520; dead>

----- Expect the subclass name
>>> eref
<ExtendRef at 0x1046bc520; dead>
History
Date User Action Args
2020-04-25 03:05:17OhBonsaisetrecipients: + OhBonsai, taleinat, corona10
2020-04-25 03:05:17OhBonsaisetmessageid: <1587783917.63.0.137882074418.issue40383@roundup.psfhosted.org>
2020-04-25 03:05:17OhBonsailinkissue40383 messages
2020-04-25 03:05:17OhBonsaicreate