Getting Help with Help function

Getting Help with Help function

The following code gets the help message from copy module.


import copy

help(copy.copy)

The code above generates the following result.

Get help information on various objects.


import sys# from   www  . j  av a2  s . c o  m
help(sys.getrefcount)
help(sys)
help(dict)
help(str.replace)
help(ord)
help(docstrings.square)
def square(x):
     """
     function documentation
      ?
     """
     pass
    
help(docstrings.employee)
help(docstrings)

The code above generates the following result.





















Home »
  Python »
    Language Basics »




Python Basics
Operator
Statements
Function Definition
Class
Buildin Functions
Buildin Modules