1997-03-14 04:12:52 +00:00
|
|
|
\chapter{Undocumented Modules}
|
1998-02-18 15:47:17 +00:00
|
|
|
\label{undoc}
|
1997-03-14 04:12:52 +00:00
|
|
|
|
|
|
|
Here's a quick listing of modules that are currently undocumented, but
|
|
|
|
that should be documented. Feel free to contribute documentation for
|
1999-02-24 19:57:14 +00:00
|
|
|
them! (The idea and original contents for this chapter were taken
|
|
|
|
from a posting by Fredrik Lundh; I have revised some modules' status.)
|
1997-03-14 04:12:52 +00:00
|
|
|
|
|
|
|
|
1999-02-24 19:57:14 +00:00
|
|
|
\section{Frameworks}
|
|
|
|
|
|
|
|
Frameworks tend to be harder to document, but are well worth the
|
|
|
|
effort spent.
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1998-04-07 14:15:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{Tkinter}]
|
1999-11-10 16:21:37 +00:00
|
|
|
--- Interface to Tcl/Tk for graphical user interfaces; Fredrik Lundh
|
|
|
|
is working on this one! See
|
1999-12-01 18:44:09 +00:00
|
|
|
\citetitle[http://www.pythonware.com/library.htm]{An Introduction to
|
|
|
|
Tkinter} at \url{http://www.pythonware.com/library.htm} for on-line
|
1999-06-18 19:58:59 +00:00
|
|
|
reference material.
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{Tkdnd}]
|
1998-04-14 04:55:43 +00:00
|
|
|
--- Drag-and-drop support for \module{Tkinter}.
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{test}]
|
1998-08-11 18:13:31 +00:00
|
|
|
--- Regression testing framework. This is used for the Python
|
|
|
|
regression test, but is useful for other Python libraries as well.
|
|
|
|
This is a package rather than a module.
|
1998-04-07 14:15:28 +00:00
|
|
|
\end{description}
|
1997-03-14 04:12:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
\section{Miscellaneous useful utilities}
|
|
|
|
|
1999-06-23 14:56:13 +00:00
|
|
|
Some of these are very old and/or not very robust; marked with ``hmm.''
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1998-04-07 14:15:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{bdb}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- A generic Python debugger base class (used by pdb)
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{ihooks}]
|
1999-06-23 14:56:13 +00:00
|
|
|
--- Import hook support (for \refmodule{rexec}; may become obsolete)
|
1999-07-01 20:42:57 +00:00
|
|
|
|
|
|
|
\item[\module{tzparse}]
|
|
|
|
--- Parse a timezone specification (unfinished; may disappear in the
|
|
|
|
future)
|
1998-04-07 14:15:28 +00:00
|
|
|
\end{description}
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1997-08-15 02:52:46 +00:00
|
|
|
|
1997-03-14 04:12:52 +00:00
|
|
|
\section{Platform specific modules}
|
|
|
|
|
1999-06-18 19:58:59 +00:00
|
|
|
These modules are used to implement the \refmodule{os.path} module,
|
|
|
|
and are not documented beyond this mention. There's little need to
|
|
|
|
document these.
|
1999-02-02 18:59:58 +00:00
|
|
|
|
1998-04-07 14:15:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{dospath}]
|
1999-02-02 18:59:58 +00:00
|
|
|
--- implementation of \module{os.path} on MS-DOS
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{ntpath}]
|
1999-02-02 18:59:58 +00:00
|
|
|
--- implementation on \module{os.path} on 32-bit Windows
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{posixpath}]
|
1999-02-02 18:59:58 +00:00
|
|
|
--- implementation on \module{os.path} on \POSIX{}
|
1998-04-07 14:15:28 +00:00
|
|
|
\end{description}
|
1997-03-14 04:12:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
\section{Multimedia}
|
|
|
|
|
1998-04-07 14:15:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{audiodev}]
|
1999-06-23 14:56:13 +00:00
|
|
|
--- Platform-independent API for playing audio data
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{sunaudio}]
|
1999-06-23 14:56:13 +00:00
|
|
|
--- interpret sun audio headers (may become obsolete or a tool/demo)
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{toaiff}]
|
1999-06-18 19:58:59 +00:00
|
|
|
--- Convert "arbitrary" sound files to AIFF files; should probably
|
1999-06-23 14:56:13 +00:00
|
|
|
become a tool or demo. Requires the external program \program{sox}.
|
1998-04-07 14:15:28 +00:00
|
|
|
\end{description}
|
1997-03-14 04:12:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
\section{Obsolete}
|
|
|
|
|
1998-04-04 07:03:19 +00:00
|
|
|
These modules are not on the standard module search path;
|
|
|
|
\indexiii{module}{search}{path}
|
|
|
|
but are available in the directory \file{lib-old/} installed under
|
1998-08-07 16:02:28 +00:00
|
|
|
\file{\textrm{\$prefix}/lib/python1.5/}. % $ <-- bow to font lock
|
|
|
|
To use any of these modules, add that directory to \code{sys.path},
|
|
|
|
possibly using \envvar{PYTHONPATH}.
|
1997-07-16 15:48:20 +00:00
|
|
|
|
1998-04-07 14:15:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{addpack}]
|
|
|
|
--- alternate approach to packages
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-10-26 16:27:28 +00:00
|
|
|
\item[\module{cmp}]
|
1999-10-29 17:25:59 +00:00
|
|
|
--- File comparison function. Use the newer \refmodule{filecmp} instead.
|
1999-10-26 16:27:28 +00:00
|
|
|
|
|
|
|
\item[\module{cmpcache}]
|
|
|
|
--- Caching version of the obsolete \module{cmp} module. Use the
|
1999-10-29 17:25:59 +00:00
|
|
|
newer \refmodule{filecmp} instead.
|
1999-10-26 16:27:28 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{codehack}]
|
1998-11-02 15:46:21 +00:00
|
|
|
--- Extract function name or line number from a function
|
1999-06-23 14:56:13 +00:00
|
|
|
code object (these are now accessible as attributes:
|
|
|
|
\member{co.co_name}, \member{func.func_name},
|
|
|
|
\member{co.co_firstlineno}).
|
1998-11-02 15:46:21 +00:00
|
|
|
|
2000-02-03 15:27:26 +00:00
|
|
|
\item[\module{dircmp}]
|
|
|
|
--- class to build directory diff tools on (may become a demo or tool)
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{dump}]
|
1999-06-18 17:12:15 +00:00
|
|
|
--- Print python code that reconstructs a variable
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{fmt}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- text formatting abstractions (too slow)
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{lockfile}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- wrapper around FCNTL file locking (use
|
1999-06-23 14:56:13 +00:00
|
|
|
\function{fcntl.lockf()}/\function{flock()} intead; see \refmodule{fcntl})
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-10-26 16:27:28 +00:00
|
|
|
\item[\module{newdir}]
|
|
|
|
--- New \function{dir()} function (the standard \function{dir()} is
|
|
|
|
now just as good)
|
|
|
|
|
|
|
|
\item[\module{Para}]
|
|
|
|
--- helper for fmt.py
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{poly}]
|
1998-11-02 15:46:21 +00:00
|
|
|
--- Polynomials
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{tb}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- Print tracebacks, with a dump of local variables (use
|
1999-01-13 17:11:52 +00:00
|
|
|
\function{pdb.pm()} or \refmodule{traceback} instead)
|
1997-03-14 04:12:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{timing}]
|
1998-08-07 16:02:28 +00:00
|
|
|
--- Measure time intervals to high resolution (use
|
|
|
|
\function{time.clock()} instead). (This is an extension module.)
|
1998-11-02 15:46:21 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{util}]
|
1999-06-10 21:17:11 +00:00
|
|
|
--- Useful functions that don't fit elsewhere.
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{wdb}]
|
1999-06-18 19:58:59 +00:00
|
|
|
--- A primitive windowing debugger based on STDWIN.
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{whatsound}]
|
1999-01-13 17:11:52 +00:00
|
|
|
--- Recognize sound files; use \refmodule{sndhdr} instead.
|
1999-01-05 23:09:12 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{zmod}]
|
1998-11-02 15:46:21 +00:00
|
|
|
--- Compute properties of mathematical "fields"
|
1998-04-07 14:15:28 +00:00
|
|
|
\end{description}
|
1997-07-18 21:08:07 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
|
|
|
|
The following modules are obsolete, but are likely re-surface as tools
|
|
|
|
or scripts.
|
|
|
|
|
|
|
|
\begin{description}
|
|
|
|
\item[\module{find}]
|
|
|
|
--- find files matching pattern in directory tree
|
|
|
|
|
|
|
|
\item[\module{grep}]
|
|
|
|
--- grep
|
|
|
|
|
|
|
|
\item[\module{packmail}]
|
|
|
|
--- create a self-unpacking \UNIX{} shell archive
|
|
|
|
\end{description}
|
|
|
|
|
|
|
|
|
1998-04-09 14:32:28 +00:00
|
|
|
The following modules were documented in previous versions of this
|
1999-06-23 14:56:13 +00:00
|
|
|
manual, but are now considered obsolete. The source for the
|
|
|
|
documentation is still available as part of the documentation source
|
|
|
|
archive.
|
1998-04-09 14:32:28 +00:00
|
|
|
|
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{ni}]
|
1998-08-07 16:02:28 +00:00
|
|
|
--- Import modules in ``packages.'' Basic package support is now
|
|
|
|
built in.
|
1998-04-09 14:32:28 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{rand}]
|
1998-04-09 14:32:28 +00:00
|
|
|
--- Old interface to the random number generator.
|
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{soundex}]
|
1998-04-09 14:32:28 +00:00
|
|
|
--- Algorithm for collapsing names which sound similar to a shared
|
|
|
|
key. (This is an extension module.)
|
|
|
|
\end{description}
|
|
|
|
|
1997-03-14 04:12:52 +00:00
|
|
|
|
|
|
|
\section{Extension modules}
|
|
|
|
|
1998-04-07 14:15:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{stdwin}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- Interface to STDWIN (an old, unsupported
|
1999-07-01 20:42:57 +00:00
|
|
|
platform-independent GUI package). Obsolete; use \module{Tkinter} for
|
|
|
|
a platform-independent GUI instead.
|
1998-08-07 16:02:28 +00:00
|
|
|
\end{description}
|
1997-06-02 17:34:02 +00:00
|
|
|
|
1999-06-23 14:56:13 +00:00
|
|
|
The following are SGI specific, and may be out of touch with the
|
|
|
|
current version of reality.
|
1997-03-27 20:57:52 +00:00
|
|
|
|
1998-08-07 16:02:28 +00:00
|
|
|
\begin{description}
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{cl}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- Interface to the SGI compression library.
|
1997-03-27 20:57:52 +00:00
|
|
|
|
1999-07-01 20:42:57 +00:00
|
|
|
\item[\module{sv}]
|
1998-04-07 14:15:28 +00:00
|
|
|
--- Interface to the ``simple video'' board on SGI Indigo
|
1997-03-27 20:57:52 +00:00
|
|
|
(obsolete hardware).
|
1998-08-07 16:02:28 +00:00
|
|
|
\end{description}
|