[Python-checkins] r82547 - python/branches/py3k/Lib/pydoc.py
alexander.belopolsky
python-checkins at python.org
Sun Jul 4 19:00:20 CEST 2010
Author: alexander.belopolsky
Date: Sun Jul 4 19:00:20 2010
New Revision: 82547
Log:
Issue #9118: help(None) will now return NoneType doc instead of
starting interactive help.
Modified:
python/branches/py3k/Lib/pydoc.py
Modified: python/branches/py3k/Lib/pydoc.py
==============================================================================
--- python/branches/py3k/Lib/pydoc.py (original)
+++ python/branches/py3k/Lib/pydoc.py Sun Jul 4 19:00:20 2010
@@ -1705,8 +1705,9 @@
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()
More information about the Python-checkins
mailing list