diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 2722a753fe2..95eb3183b78 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1705,8 +1705,9 @@ class Helper: return '' return '' - def __call__(self, request=None): - if request is not None: + _GoInteractive = object() + def __call__(self, request=_GoInteractive): + if request is not self._GoInteractive: self.help(request) else: self.intro()