17.9 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"

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)

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

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)

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

ni
-- Import modules in ``packages.''

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