]> granicus.if.org Git - python/commitdiff
Issue #9118: help(None) will now return NoneType doc instead of
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sun, 4 Jul 2010 17:00:20 +0000 (17:00 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sun, 4 Jul 2010 17:00:20 +0000 (17:00 +0000)
starting interactive help.

Lib/pydoc.py

index 2722a753fe27e72ccb1e6faa8b09c34e6cce8463..95eb3183b7859e18c31d98771a03006507bc2d9f 100755 (executable)
@@ -1705,8 +1705,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()