cpython/Doc/lib/libundoc.tex

217 lines
5.6 KiB
TeX
Raw Normal View History

\chapter{Undocumented Modules}
1998-02-18 11:47:17 -04:00
\label{undoc}
Here's a quick listing of modules that are currently undocumented, but
that should be documented. Feel free to contribute documentation for
them! (The idea and original contents for this chapter were taken
from a posting by Fredrik Lundh; I have revised some modules' status.)
\section{Frameworks}
Frameworks tend to be harder to document, but are well worth the
effort spent.
\begin{description}
\item[Tkinter.py]
--- Interface to Tcl/Tk for graphical user interfaces;
Fredrik Lundh is working on this one! See \emph{An Introduction to
Tkinter} at \url{http://www.pythonware.com/library/} for on-line
reference material.
1998-04-14 01:55:43 -03:00
\item[Tkdnd.py]
--- Drag-and-drop support for \module{Tkinter}.
\item[test]
--- 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.
\end{description}
\section{Miscellaneous useful utilities}
1999-06-23 11:56:13 -03:00
Some of these are very old and/or not very robust; marked with ``hmm.''
\begin{description}
\item[dircmp.py]
1999-06-23 11:56:13 -03:00
--- class to build directory diff tools on (may become a demo or tool)
\item[pty.py]
--- Pseudo terminal utilities
\item[bdb.py]
--- A generic Python debugger base class (used by pdb)
\item[ihooks.py]
1999-06-23 11:56:13 -03:00
--- Import hook support (for \refmodule{rexec}; may become obsolete)
\end{description}
1997-08-14 23:52:46 -03:00
\section{Platform specific modules}
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 14:59:58 -04:00
\begin{description}
1999-02-02 14:59:58 -04:00
\item[dospath.py]
--- implementation of \module{os.path} on MS-DOS
\item[ntpath.py]
1999-02-02 14:59:58 -04:00
--- implementation on \module{os.path} on 32-bit Windows
1999-02-02 14:59:58 -04:00
\item[posixpath.py]
--- implementation on \module{os.path} on \POSIX{}
\end{description}
\section{Multimedia}
\begin{description}
\item[audiodev.py]
1999-06-23 11:56:13 -03:00
--- Platform-independent API for playing audio data
\item[sunaudio.py]
1999-06-23 11:56:13 -03:00
--- interpret sun audio headers (may become obsolete or a tool/demo)
\item[toaiff.py]
--- Convert "arbitrary" sound files to AIFF files; should probably
1999-06-23 11:56:13 -03:00
become a tool or demo. Requires the external program \program{sox}.
\end{description}
\section{Oddities}
These modules are probably also obsolete, or just not very useful.
Some of these may be made into tools or demos in future releases.
\begin{description}
\item[find.py]
1999-06-23 11:56:13 -03:00
--- find files matching pattern in directory tree (may become a demo
or tool, or possibly obsolete)
\item[grep.py]
1999-06-23 11:56:13 -03:00
--- grep (may become a demo or tool)
\item[mutex.py]
--- Mutual exclusion --- for use with module sched
\item[packmail.py]
--- create a self-unpacking \UNIX{} shell archive
\item[sched.py]
--- event scheduler class
\item[tzparse.py]
--- Parse a timezone specification (unfinished)
\end{description}
\section{Obsolete}
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 13:02:28 -03: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 12:48:20 -03:00
\begin{description}
\item[newdir.py]
1999-06-23 11:56:13 -03:00
--- New \function{dir()} function (the standard \function{dir()} is
now just as good)
\item[addpack.py]
--- standard support for "packages"
\item[codehack.py]
--- Extract function name or line number from a function
1999-06-23 11:56:13 -03:00
code object (these are now accessible as attributes:
\member{co.co_name}, \member{func.func_name},
\member{co.co_firstlineno}).
\item[dump.py]
--- Print python code that reconstructs a variable
\item[fmt.py]
--- text formatting abstractions (too slow)
\item[Para.py]
--- helper for fmt.py
\item[lockfile.py]
--- wrapper around FCNTL file locking (use
1999-06-23 11:56:13 -03:00
\function{fcntl.lockf()}/\function{flock()} intead; see \refmodule{fcntl})
\item[poly.py]
--- Polynomials
\item[tb.py]
--- Print tracebacks, with a dump of local variables (use
\function{pdb.pm()} or \refmodule{traceback} instead)
1998-08-07 13:02:28 -03:00
\item[timingmodule]
--- Measure time intervals to high resolution (use
\function{time.clock()} instead). (This is an extension module.)
1999-06-10 18:17:11 -03:00
\item[util.py]
--- Useful functions that don't fit elsewhere.
\item[wdb.py]
--- A primitive windowing debugger based on STDWIN.
\item[whatsound.py]
--- Recognize sound files; use \refmodule{sndhdr} instead.
\item[zmod.py]
--- Compute properties of mathematical "fields"
\end{description}
1997-07-18 18:08:07 -03:00
The following modules were documented in previous versions of this
1999-06-23 11:56:13 -03:00
manual, but are now considered obsolete. The source for the
documentation is still available as part of the documentation source
archive.
\begin{description}
\item[ni]
1998-08-07 13:02:28 -03:00
--- Import modules in ``packages.'' Basic package support is now
built in.
\item[rand]
--- Old interface to the random number generator.
\item[soundex]
--- Algorithm for collapsing names which sound similar to a shared
key. (This is an extension module.)
\end{description}
\section{Extension modules}
\begin{description}
\item[dlmodule.c]
--- A highly experimental and dangerous device for calling
1998-08-07 13:02:28 -03:00
arbitrary \C{} functions in arbitrary shared libraries.
\item[nismodule.c]
--- NIS (a.k.a. Sun's Yellow Pages) interface.
\item[stdwinmodule.c]
--- Interface to STDWIN (an old, unsupported
platform-independent GUI package). Obsolete; use Tkinter for a
platform-independent GUI instead.
1998-08-07 13:02:28 -03:00
\end{description}
1999-06-23 11:56:13 -03:00
The following are SGI specific, and may be out of touch with the
current version of reality.
1998-08-07 13:02:28 -03:00
\begin{description}
\item[clmodule.c]
--- Interface to the SGI compression library.
\item[svmodule.c]
--- Interface to the ``simple video'' board on SGI Indigo
(obsolete hardware).
1998-08-07 13:02:28 -03:00
\end{description}