Kaydet (Commit) 7be05b22 authored tarafından Alexander Belopolsky's avatar Alexander Belopolsky

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.
........
üst cff7e2f4
......@@ -1706,8 +1706,9 @@ class Helper:
return ''
return '<pydoc.Helper instance>'
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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment