Modules

A module is a collection of Python functions (or objects) that go together, eg a HTML parser library. To use a module you:
import moduleName
Every function from that library can now be called by:
moduleName.functionName()
Modules can include other modules, so you can do something like this:
import outerModule

outerModule.innerModule.functionName()
Standard Python comes with a huge collection of modules: and much more is available that isn't standard Python.
Prev Contents Next
Clinton Roy