blob: 18c9db738360fe2f2c70fad9a3260cf940c8b337 [file] [log] [blame]
Guido van Rossum612316f1997-03-14 04:12:52 +00001\chapter{Undocumented Modules}
Fred Drake710c0351998-02-18 15:47:17 +00002\label{undoc}
Guido van Rossum612316f1997-03-14 04:12:52 +00003
4Here's a quick listing of modules that are currently undocumented, but
5that should be documented. Feel free to contribute documentation for
Fred Drake16e81f41999-02-24 19:57:14 +00006them! (The idea and original contents for this chapter were taken
7from a posting by Fredrik Lundh; I have revised some modules' status.)
Guido van Rossum612316f1997-03-14 04:12:52 +00008
9
Fred Drake16e81f41999-02-24 19:57:14 +000010\section{Frameworks}
11
12Frameworks tend to be harder to document, but are well worth the
13effort spent.
Guido van Rossum612316f1997-03-14 04:12:52 +000014
Fred Drake272fb3a1998-04-07 14:15:28 +000015\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000016\item[\module{Tkinter}]
Fred Drake37f15741999-11-10 16:21:37 +000017--- Interface to Tcl/Tk for graphical user interfaces; Fredrik Lundh
18is working on this one! See
Fred Draked4d4ba31999-12-01 18:44:09 +000019\citetitle[http://www.pythonware.com/library.htm]{An Introduction to
20Tkinter} at \url{http://www.pythonware.com/library.htm} for on-line
Fred Drake6f49e0a1999-06-18 19:58:59 +000021reference material.
Guido van Rossum612316f1997-03-14 04:12:52 +000022
Fred Drakee4694eb1999-07-01 20:42:57 +000023\item[\module{Tkdnd}]
Fred Drake95638f51998-04-14 04:55:43 +000024--- Drag-and-drop support for \module{Tkinter}.
25
Fred Drakee4694eb1999-07-01 20:42:57 +000026\item[\module{test}]
Fred Drake211f22c1998-08-11 18:13:31 +000027--- Regression testing framework. This is used for the Python
28regression test, but is useful for other Python libraries as well.
29This is a package rather than a module.
Fred Drake272fb3a1998-04-07 14:15:28 +000030\end{description}
Guido van Rossum612316f1997-03-14 04:12:52 +000031
Guido van Rossum612316f1997-03-14 04:12:52 +000032
Guido van Rossum612316f1997-03-14 04:12:52 +000033\section{Miscellaneous useful utilities}
34
Fred Drakeae4d5c21999-06-23 14:56:13 +000035Some of these are very old and/or not very robust; marked with ``hmm.''
Guido van Rossum612316f1997-03-14 04:12:52 +000036
Fred Drake272fb3a1998-04-07 14:15:28 +000037\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000038\item[\module{dircmp}]
Fred Drakeae4d5c21999-06-23 14:56:13 +000039--- class to build directory diff tools on (may become a demo or tool)
Guido van Rossum612316f1997-03-14 04:12:52 +000040
Fred Drakee4694eb1999-07-01 20:42:57 +000041\item[\module{bdb}]
Fred Drake272fb3a1998-04-07 14:15:28 +000042--- A generic Python debugger base class (used by pdb)
Guido van Rossum612316f1997-03-14 04:12:52 +000043
Fred Drakee4694eb1999-07-01 20:42:57 +000044\item[\module{ihooks}]
Fred Drakeae4d5c21999-06-23 14:56:13 +000045--- Import hook support (for \refmodule{rexec}; may become obsolete)
Fred Drakee4694eb1999-07-01 20:42:57 +000046
47\item[\module{tzparse}]
48--- Parse a timezone specification (unfinished; may disappear in the
49future)
Fred Drake272fb3a1998-04-07 14:15:28 +000050\end{description}
Guido van Rossum612316f1997-03-14 04:12:52 +000051
Guido van Rossum90858221997-08-15 02:52:46 +000052
Guido van Rossum612316f1997-03-14 04:12:52 +000053\section{Platform specific modules}
54
Fred Drake6f49e0a1999-06-18 19:58:59 +000055These modules are used to implement the \refmodule{os.path} module,
56and are not documented beyond this mention. There's little need to
57document these.
Fred Drake560bcae1999-02-02 18:59:58 +000058
59\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000060\item[\module{dospath}]
Fred Drake560bcae1999-02-02 18:59:58 +000061--- implementation of \module{os.path} on MS-DOS
62
Fred Drakee4694eb1999-07-01 20:42:57 +000063\item[\module{ntpath}]
Fred Drake560bcae1999-02-02 18:59:58 +000064--- implementation on \module{os.path} on 32-bit Windows
65
Fred Drakee4694eb1999-07-01 20:42:57 +000066\item[\module{posixpath}]
Fred Drake560bcae1999-02-02 18:59:58 +000067--- implementation on \module{os.path} on \POSIX{}
Fred Drake272fb3a1998-04-07 14:15:28 +000068\end{description}
Guido van Rossum612316f1997-03-14 04:12:52 +000069
Guido van Rossum612316f1997-03-14 04:12:52 +000070
Guido van Rossum612316f1997-03-14 04:12:52 +000071\section{Multimedia}
72
Fred Drake272fb3a1998-04-07 14:15:28 +000073\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000074\item[\module{audiodev}]
Fred Drakeae4d5c21999-06-23 14:56:13 +000075--- Platform-independent API for playing audio data
Guido van Rossum612316f1997-03-14 04:12:52 +000076
Fred Drakee4694eb1999-07-01 20:42:57 +000077\item[\module{sunaudio}]
Fred Drakeae4d5c21999-06-23 14:56:13 +000078--- interpret sun audio headers (may become obsolete or a tool/demo)
Guido van Rossum612316f1997-03-14 04:12:52 +000079
Fred Drakee4694eb1999-07-01 20:42:57 +000080\item[\module{toaiff}]
Fred Drake6f49e0a1999-06-18 19:58:59 +000081--- Convert "arbitrary" sound files to AIFF files; should probably
Fred Drakeae4d5c21999-06-23 14:56:13 +000082become a tool or demo. Requires the external program \program{sox}.
Fred Drake272fb3a1998-04-07 14:15:28 +000083\end{description}
Guido van Rossum612316f1997-03-14 04:12:52 +000084
85
Guido van Rossum612316f1997-03-14 04:12:52 +000086\section{Obsolete}
87
Fred Drake71c1e501998-04-04 07:03:19 +000088These modules are not on the standard module search path;
89\indexiii{module}{search}{path}
90but are available in the directory \file{lib-old/} installed under
Fred Drake3700b6f1998-08-07 16:02:28 +000091\file{\textrm{\$prefix}/lib/python1.5/}. % $ <-- bow to font lock
92To use any of these modules, add that directory to \code{sys.path},
93possibly using \envvar{PYTHONPATH}.
Guido van Rossumcfaf1431997-07-16 15:48:20 +000094
Fred Drake272fb3a1998-04-07 14:15:28 +000095\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000096\item[\module{addpack}]
97--- alternate approach to packages
Guido van Rossum612316f1997-03-14 04:12:52 +000098
Fred Drakea8052a31999-10-26 16:27:28 +000099\item[\module{cmp}]
Fred Drake47a27b61999-10-29 17:25:59 +0000100--- File comparison function. Use the newer \refmodule{filecmp} instead.
Fred Drakea8052a31999-10-26 16:27:28 +0000101
102\item[\module{cmpcache}]
103--- Caching version of the obsolete \module{cmp} module. Use the
Fred Drake47a27b61999-10-29 17:25:59 +0000104newer \refmodule{filecmp} instead.
Fred Drakea8052a31999-10-26 16:27:28 +0000105
Fred Drakee4694eb1999-07-01 20:42:57 +0000106\item[\module{codehack}]
Fred Drake9ed1a0a1998-11-02 15:46:21 +0000107--- Extract function name or line number from a function
Fred Drakeae4d5c21999-06-23 14:56:13 +0000108code object (these are now accessible as attributes:
109\member{co.co_name}, \member{func.func_name},
110\member{co.co_firstlineno}).
Fred Drake9ed1a0a1998-11-02 15:46:21 +0000111
Fred Drakee4694eb1999-07-01 20:42:57 +0000112\item[\module{dump}]
Fred Drake46e1a321999-06-18 17:12:15 +0000113--- Print python code that reconstructs a variable
114
Fred Drakee4694eb1999-07-01 20:42:57 +0000115\item[\module{fmt}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000116--- text formatting abstractions (too slow)
Guido van Rossum612316f1997-03-14 04:12:52 +0000117
Fred Drakee4694eb1999-07-01 20:42:57 +0000118\item[\module{lockfile}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000119--- wrapper around FCNTL file locking (use
Fred Drakeae4d5c21999-06-23 14:56:13 +0000120\function{fcntl.lockf()}/\function{flock()} intead; see \refmodule{fcntl})
Guido van Rossum612316f1997-03-14 04:12:52 +0000121
Fred Drakea8052a31999-10-26 16:27:28 +0000122\item[\module{newdir}]
123--- New \function{dir()} function (the standard \function{dir()} is
124now just as good)
125
126\item[\module{Para}]
127--- helper for fmt.py
128
Fred Drakee4694eb1999-07-01 20:42:57 +0000129\item[\module{poly}]
Fred Drake9ed1a0a1998-11-02 15:46:21 +0000130--- Polynomials
131
Fred Drakee4694eb1999-07-01 20:42:57 +0000132\item[\module{tb}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000133--- Print tracebacks, with a dump of local variables (use
Fred Drakee36e4e61999-01-13 17:11:52 +0000134\function{pdb.pm()} or \refmodule{traceback} instead)
Guido van Rossum612316f1997-03-14 04:12:52 +0000135
Fred Drakee4694eb1999-07-01 20:42:57 +0000136\item[\module{timing}]
Fred Drake3700b6f1998-08-07 16:02:28 +0000137--- Measure time intervals to high resolution (use
138\function{time.clock()} instead). (This is an extension module.)
Fred Drake9ed1a0a1998-11-02 15:46:21 +0000139
Fred Drakee4694eb1999-07-01 20:42:57 +0000140\item[\module{util}]
Fred Drake4d5c87b1999-06-10 21:17:11 +0000141--- Useful functions that don't fit elsewhere.
142
Fred Drakee4694eb1999-07-01 20:42:57 +0000143\item[\module{wdb}]
Fred Drake6f49e0a1999-06-18 19:58:59 +0000144--- A primitive windowing debugger based on STDWIN.
145
Fred Drakee4694eb1999-07-01 20:42:57 +0000146\item[\module{whatsound}]
Fred Drakee36e4e61999-01-13 17:11:52 +0000147--- Recognize sound files; use \refmodule{sndhdr} instead.
Fred Drake60adb361999-01-05 23:09:12 +0000148
Fred Drakee4694eb1999-07-01 20:42:57 +0000149\item[\module{zmod}]
Fred Drake9ed1a0a1998-11-02 15:46:21 +0000150--- Compute properties of mathematical "fields"
Fred Drake272fb3a1998-04-07 14:15:28 +0000151\end{description}
Guido van Rossum61c27031997-07-18 21:08:07 +0000152
Fred Drakee4694eb1999-07-01 20:42:57 +0000153
154The following modules are obsolete, but are likely re-surface as tools
155or scripts.
156
157\begin{description}
158\item[\module{find}]
159--- find files matching pattern in directory tree
160
161\item[\module{grep}]
162--- grep
163
164\item[\module{packmail}]
165--- create a self-unpacking \UNIX{} shell archive
166\end{description}
167
168
Fred Drake20ca9171998-04-09 14:32:28 +0000169The following modules were documented in previous versions of this
Fred Drakeae4d5c21999-06-23 14:56:13 +0000170manual, but are now considered obsolete. The source for the
171documentation is still available as part of the documentation source
172archive.
Fred Drake20ca9171998-04-09 14:32:28 +0000173
174\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +0000175\item[\module{ni}]
Fred Drake3700b6f1998-08-07 16:02:28 +0000176--- Import modules in ``packages.'' Basic package support is now
177built in.
Fred Drake20ca9171998-04-09 14:32:28 +0000178
Fred Drakee4694eb1999-07-01 20:42:57 +0000179\item[\module{rand}]
Fred Drake20ca9171998-04-09 14:32:28 +0000180--- Old interface to the random number generator.
181
Fred Drakee4694eb1999-07-01 20:42:57 +0000182\item[\module{soundex}]
Fred Drake20ca9171998-04-09 14:32:28 +0000183--- Algorithm for collapsing names which sound similar to a shared
184key. (This is an extension module.)
185\end{description}
186
Guido van Rossum612316f1997-03-14 04:12:52 +0000187
188\section{Extension modules}
189
Fred Drake272fb3a1998-04-07 14:15:28 +0000190\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +0000191\item[\module{stdwin}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000192--- Interface to STDWIN (an old, unsupported
Fred Drakee4694eb1999-07-01 20:42:57 +0000193platform-independent GUI package). Obsolete; use \module{Tkinter} for
194a platform-independent GUI instead.
Fred Drake3700b6f1998-08-07 16:02:28 +0000195\end{description}
Guido van Rossumb9ee9c21997-06-02 17:34:02 +0000196
Fred Drakeae4d5c21999-06-23 14:56:13 +0000197The following are SGI specific, and may be out of touch with the
198current version of reality.
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000199
Fred Drake3700b6f1998-08-07 16:02:28 +0000200\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +0000201\item[\module{cl}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000202--- Interface to the SGI compression library.
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000203
Fred Drakee4694eb1999-07-01 20:42:57 +0000204\item[\module{sv}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000205--- Interface to the ``simple video'' board on SGI Indigo
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000206(obsolete hardware).
Fred Drake3700b6f1998-08-07 16:02:28 +0000207\end{description}