mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Merged revisions 82547 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82547 | alexander.belopolsky | 2010-07-04 13:00:20 -0400 (Sun, 04 Jul 2010) | 3 lines Issue #9118: help(None) will now return NoneType doc instead of starting interactive help. ........
This commit is contained in:
parent
2d47ef637a
commit
d501dde89d
1 changed files with 3 additions and 2 deletions
|
@ -1718,8 +1718,9 @@ class Helper:
|
||||||
return ''
|
return ''
|
||||||
return '<pydoc.Helper instance>'
|
return '<pydoc.Helper instance>'
|
||||||
|
|
||||||
def __call__(self, request=None):
|
_GoInteractive = object()
|
||||||
if request is not None:
|
def __call__(self, request=_GoInteractive):
|
||||||
|
if request is not self._GoInteractive:
|
||||||
self.help(request)
|
self.help(request)
|
||||||
else:
|
else:
|
||||||
self.intro()
|
self.intro()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue