A.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.
- -- Alternate approach to packages. Use the built-in package support
instead.
- -- File comparison function. Use the newer filecmp instead.
- -- Caching version of the obsolete cmp module. Use the
newer filecmp instead.
- -- 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).
- -- Class to build directory diff tools on (may become a demo or tool).
- -- Print python code that reconstructs a variable.
- -- Text formatting abstractions (too slow).
- -- Wrapper around FCNTL file locking (use
fcntl.lockf()/flock() instead; see fcntl).
- -- New dir() function (the standard dir() is
now just as good).
- -- Helper for fmt.
- -- Polynomials.
- -- Emacs-style regular expression support; may still be used in some
old code (extension module). Refer to the
Python
1.6 Documentation for documentation.
- -- Regular expression based string replacement utilities, for use
with regex (extension module). Refer to the
Python
1.6 Documentation for documentation.
- -- Print tracebacks, with a dump of local variables (use
pdb.pm() or traceback instead).
- -- Measure time intervals to high resolution (use
time.clock() instead). (This is an extension module.)
- -- Parse a timezone specification (unfinished; may disappear in the
future, and does not work when the TZ environment variable is
not set).
- -- Useful functions that don't fit elsewhere.
- -- Recognize sound files; use sndhdr instead.
- -- Compute properties of mathematical ``fields.''
The following modules are obsolete, but are likely to re-surface as tools or scripts:
- -- Find files matching pattern in directory tree.
- -- grep implementation in Python.
- -- 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.
- -- Import modules in ``packages.'' Basic package support is now
built in. The built-in support is very similar to what is provided in
this module.
- -- Old interface to the random number generator.
- -- Algorithm for collapsing names which sound similar to a shared key. The specific algorithm doesn't seem to match any published algorithm. (This is an extension module.)
See About this document... for information on suggesting changes.