Help Utility

suggest change

Python has several functions built into the interpreter. To get information on keywords, built-in functions, modules, or topics, open a Python console and enter:

>>> help()

You will receive information by entering keywords directly:

>>> help(help)

or within the utility:

help> help

which will show an explanation:

Help on _Helper in module _sitebuiltins object:

class _Helper(builtins.object)
 |  Define the builtin 'help'.
 |  
 |  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'.
 |  
 |  Methods defined here:
 |  
 |  __call__(self, *args, **kwds)
 |  
 |  __repr__(self)
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __dict__
 |      dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)

You can also request help for a module or a name inside a package:

help(pymysql.connections)

You can use help to access the docstrings of modules you have imported. help(math) before the import raises NameError, because the name math is not defined yet:

>>> import math
>>> help(math)

After the import, help lists the module's contents.

Close the helper with quit

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents