New submission from OhBonsai <letbonsa...@gmail.com>:
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> ---------- components: Extension Modules messages: 367248 nosy: OhBonsai, corona10, taleinat priority: normal severity: normal status: open title: some class name are hardcoded in reprs type: enhancement versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40383> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com