From 465e60e654732b3a0b726d1fd82950fc982fcba2 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 25 Jul 2014 23:36:00 +0300 Subject: Issue #22033: Reprs of most Python implemened classes now contain actual class name instead of hardcoded one. --- Lib/pydoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/pydoc.py') diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 4c67835179..a577543218 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1811,7 +1811,8 @@ class Helper: if inspect.stack()[1][3] == '?': self() return '' - return '' + return '<%s.%s instance>' % (self.__class__.__module__, + self.__class__.__qualname__) _GoInteractive = object() def __call__(self, request=_GoInteractive): -- cgit v1.2.1