diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-04-19 12:59:30 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-04-19 12:59:30 -0400 |
commit | dbac326241ea26b500d977d85f058b8697f0308c (patch) | |
tree | a99179506dfe9f0deb419d718fdc362086bdfdef /Lib/_sitebuiltins.py | |
parent | a05a707aa9ef9ffaf155c2f625f12d49eb47a81a (diff) | |
download | cpython-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.py | 6 |
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): |