summaryrefslogtreecommitdiff
path: root/Lib/_sitebuiltins.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-04-19 12:59:30 -0400
committerR David Murray <rdmurray@bitdance.com>2014-04-19 12:59:30 -0400
commitdbac326241ea26b500d977d85f058b8697f0308c (patch)
treea99179506dfe9f0deb419d718fdc362086bdfdef /Lib/_sitebuiltins.py
parenta05a707aa9ef9ffaf155c2f625f12d49eb47a81a (diff)
downloadcpython-dbac326241ea26b500d977d85f058b8697f0308c.tar.gz
#9364: Improve the text printed by help(pydoc) and help(help).
Diffstat (limited to 'Lib/_sitebuiltins.py')
-rw-r--r--Lib/_sitebuiltins.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/_sitebuiltins.py b/Lib/_sitebuiltins.py
index 1f21358e26..c29cf4bf8f 100644
--- a/Lib/_sitebuiltins.py
+++ b/Lib/_sitebuiltins.py
@@ -87,8 +87,12 @@ class _Printer(object):
class _Helper(object):
"""Define the builtin 'help'.
- This is a wrapper around pydoc.help (with a twist).
+ This is a wrapper around pydoc.help that provides a helpful message
+ when 'help' is typed at the Python interactive prompt.
+
+ Calling help() at the Python prompt starts an interactive help session.
+ Calling help(thing) prints help for the python object 'thing'.
"""
def __repr__(self):