Library

The Python library consists of a number of modules that may be imported with a statement such as:

Importing a module in this fashion makes its contents available within a namespace unique to that module; for the  module, this will make the   function callable as.

To use the contents of a module within the global namespace, use:

This makes the  function callable as.

It is also possible to import a subset of the contents of a module:

This makes,  , and   available, but not the other elements of the   module.

Modules available on all platforms
These modules are in all platforms, and most are available in earlier versions of Python, as listed:

Modules available on all Unix-like systems
The following additional modules are available in Unix, including Linux, FreeBSD and others:

Modules available on IRIX
These modules are available on SGI's IRIX system. They deal mainly with multimedia issues:

Modules available on Windows
The following additional modules are available in Windows:

Modules available on MacOS
The following additional modules are available in MacOS:

Obsolete modules
The following modules were present in earlier versions of Python, but are no longer present in Python 2.5: