diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 1afc5f70ed8..916076a6c2d 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1706,8 +1706,9 @@ def __repr__(self): 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()