mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
#9364: Improve the text printed by help(pydoc) and help(help).
This commit is contained in:
parent
658af31372
commit
3d050ddf19
2 changed files with 9 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue