# 19.5 Obsolete

These modules are not on the standard module search path; but are available in the directory `lib-old/` installed under `$prefix/lib/python1.5/`. To use any of these modules, add that directory to `sys.path`, possibly using $PYTHONPATH.

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

`addpack`
  -- alternate approach to packages

`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`).

`dump`
  -- Print python code that reconstructs a variable

`fmt`
  -- text formatting abstractions (too slow)

`Para`
  -- helper for fmt.py

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

`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.)