The Standard Python Library: New Modules in Python 2.1

[book home] [python 2.1] [python 2.2] [python 2.3] [python 2.4] [python 2.5]


A registry of features supported by the from __future__ compiler directive.


Tools to detect differences and calculate deltas between lists of objects.

distutils (package)

Tools to distribute and install Python extensions.


A test framework, based on docstrings. To use this for general testing, you can write test scripts and use doctest to make sure the test scripts work as documented. Also see unittest.


Tools to extract information about Python objects, of all kinds.


Tools to automatically generate documentation for a Python module, based on class layout, function and method signatures, docstrings, and more.


A simple SMTP proxy daemon.


Tools to access the compiler’s internal symbol table.

ucnhash (removed)

Unicode name database, used to support \N{} escapes in Unicode string literals. The database has been moved to the unicodedata module.


Tools to write unit tests for Python code, modelled after Kent Beck’s Smalltalk test framework and Java’s JUnit (dead link).


A warning generation framework. The standard library itself uses this framework to generate warnings for deprecated library modules.


Helpers to create weak object references, including weak containers.


XML DOM implementation registry. To access the registry, use the xml.dom.getDOMImplementation and xml.dom.registerDOMImplementation functions.


A file wrapper that uses large buffers to speed up reading individual text lines.


A Django site. rendered by a django application. hosted by webfaction.