diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-04-19 16:59:30 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-04-19 16:59:30 (GMT) |
commit | 3d050ddf195a4473051f82e47b969c9b196dfa09 (patch) | |
tree | 82e230b1150cce6057e10e4b5f1116cc9f652e5b /Lib/_sitebuiltins.py | |
parent | 658af3137237407549e71cc1c3a3dd4f2c86b675 (diff) | |
download | cpython-3d050ddf195a4473051f82e47b969c9b196dfa09.zip cpython-3d050ddf195a4473051f82e47b969c9b196dfa09.tar.gz cpython-3d050ddf195a4473051f82e47b969c9b196dfa09.tar.bz2 |
#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 1f21358..c29cf4b 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): |