# 19.6 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.py
  -- New dir() function (the standard dir() is now just as good)

addpack.py
  -- standard support for "packages"

codehack.py
  -- 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).

fmt.py
  -- text formatting abstractions (too slow)

Para.py
  -- helper for fmt.py

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

poly.py
  -- Polynomials

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

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

whatsound.py
  -- Recognize sound files; use `sndhdr` instead.

zmod.py
  -- Compute properties of mathematical "fields"

The following modules were documented in previous versions of this manual, but are now considered obsolete:

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