mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #22033: Reprs of most Python implemened classes now contain actual
class name instead of hardcoded one.
This commit is contained in:
parent
54701f303f
commit
465e60e654
24 changed files with 102 additions and 74 deletions
|
@ -1811,7 +1811,8 @@ class Helper:
|
|||
if inspect.stack()[1][3] == '?':
|
||||
self()
|
||||
return ''
|
||||
return '<pydoc.Helper instance>'
|
||||
return '<%s.%s instance>' % (self.__class__.__module__,
|
||||
self.__class__.__qualname__)
|
||||
|
||||
_GoInteractive = object()
|
||||
def __call__(self, request=_GoInteractive):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue