19.5 Obsolete

These modules are not normally available for import; additional work must be done to make them available.

Those which are written in Python will be installed into the directory lib-old/ installed as part of the standard library. To use these, the directory must be added to sys.path, possibly using $PYTHONPATH.

Obsolete extension modules written in C are not built by default. Under Unix, these must be enabled by uncommenting the appropriate lines in Modules/Setup in the build tree and either rebuilding Python if the modules are statically linked, or building and installing the shared object if using dynamically-loaded extensions.

addpack
-- alternate approach to packages

cmp
-- File comparison function. Use the newer filecmp instead.

cmpcache
-- Caching version of the obsolete cmp module. Use the newer filecmp instead.

codehack
-- Extract function name or line number from a function code object (these are now accessible as attributes: co.co_name, func.func_name, co.co_firstlineno).

dircmp
-- class to build directory diff tools on (may become a demo or tool)

dump
-- Print python code that reconstructs a variable

fmt
-- text formatting abstractions (too slow)

lockfile
-- wrapper around FCNTL file locking (use fcntl.lockf()/flock() intead; see fcntl)

newdir
-- New dir() function (the standard dir() is now just as good)

Para
-- helper for fmt.py

poly
-- Polynomials

tb
-- Print tracebacks, with a dump of local variables (use pdb.pm() or traceback instead)

timing
-- Measure time intervals to high resolution (use time.clock() instead). (This is an extension module.)

util
-- Useful functions that don't fit elsewhere.

wdb
-- A primitive windowing debugger based on STDWIN.

whatsound
-- Recognize sound files; use sndhdr instead.

zmod
-- Compute properties of mathematical "fields"

The following modules are obsolete, but are likely re-surface as tools or scripts.

find
-- find files matching pattern in directory tree

grep
-- grep

packmail
-- create a self-unpacking Unix shell archive

The following modules were documented in previous versions of this manual, but are now considered obsolete. The source for the documentation is still available as part of the documentation source archive.

ni
-- Import modules in ``packages.'' Basic package support is now built in.

rand
-- Old interface to the random number generator.

soundex
-- Algorithm for collapsing names which sound similar to a shared key. (This is an extension module.)


See About this document... for information on suggesting changes.