Dir Function
eharetea

The dir function returns all the functions inside of a module.

Python dir function.

Date Created:Monday February 19th, 2007 01:11 AM
Date Modified:Saturday August 02nd, 2008 01:19 PM

>>> import cmath
>>> dir(cmath)
['__doc__', '__file__', '__name__', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atanh', 'cos', 'cosh', 'e', 'exp', 'log', 'log10', 'pi', 'sin', 'sinh', 'sqrt', 'tan', 'tanh']
>>> dir()
['__builtins__', '__doc__', '__name__', 'cmath']