[issue40383] some class name are hardcoded in reprs

2020-04-24 Thread OhBonsai
Change by OhBonsai : -- keywords: +patch pull_requests: +19027 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19707 ___ Python tracker ___ ___

[issue40383] some class name are hardcoded in reprs

2020-04-24 Thread OhBonsai
New submission from OhBonsai : 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())