1997-03-14 00:12:52 -04:00
|
|
|
\chapter{Undocumented Modules}
|
|
|
|
|
|
|
|
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 most contents for this chapter were taken from a
|
|
|
|
posting by Fredrik Lundh; I have revised some modules' status.)
|
|
|
|
|
|
|
|
|
|
|
|
\section{Fundamental, and pretty straightforward to document}
|
|
|
|
|
1997-08-20 23:29:19 -03:00
|
|
|
cPickle.c -- mostly the same as pickle but no subclassing
|
|
|
|
|
|
|
|
cStringIO.c -- mostly the same as StringIO but no subclassing
|
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
|
1997-12-29 17:32:26 -04:00
|
|
|
\section{Frameworks; somewhat harder to document, but well worth the effort}
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
Tkinter.py -- Interface to Tcl/Tk for graphical user interfaces;
|
1997-04-03 19:49:28 -04:00
|
|
|
Fredrik Lundh is working on this one!
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
CGIHTTPServer.py -- CGI-savvy HTTP Server
|
|
|
|
|
|
|
|
SimpleHTTPServer.py -- Simple HTTP Server
|
|
|
|
|
|
|
|
|
|
|
|
\section{Stuff useful to a lot of people, including the CGI crowd}
|
|
|
|
|
|
|
|
MimeWriter.py -- Generic MIME writer
|
|
|
|
|
|
|
|
multifile.py -- make each part of a multipart message ``feel'' like
|
|
|
|
|
1997-11-24 13:50:09 -04:00
|
|
|
fileinput.py -- convenient loop over the lines in a list of input files.
|
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
\section{Miscellaneous useful utilities}
|
|
|
|
|
|
|
|
Some of these are very old and/or not very robust; marked with ``hmm''.
|
|
|
|
|
|
|
|
calendar.py -- Calendar printing functions
|
|
|
|
|
1997-12-30 00:41:56 -04:00
|
|
|
ConfigParser.py -- Parse a file of sectioned configuration parameters
|
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
cmp.py -- Efficiently compare files
|
|
|
|
|
|
|
|
cmpcache.py -- Efficiently compare files (uses statcache)
|
|
|
|
|
|
|
|
dircache.py -- like os.listdir, but caches results
|
|
|
|
|
|
|
|
dircmp.py -- class to build directory diff tools on
|
|
|
|
|
|
|
|
linecache.py -- Cache lines from files (used by pdb)
|
|
|
|
|
|
|
|
pipes.py -- Conversion pipeline templates (hmm)
|
|
|
|
|
1997-04-30 16:41:48 -03:00
|
|
|
popen2.py -- improved popen, can read AND write simultaneously
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
statcache.py -- Maintain a cache of file stats
|
|
|
|
|
|
|
|
colorsys.py -- Conversion between RGB and other color systems
|
|
|
|
|
1997-04-03 19:49:28 -04:00
|
|
|
dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen
|
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
mhlib.py -- MH interface
|
|
|
|
|
|
|
|
pty.py -- Pseudo terminal utilities
|
|
|
|
|
|
|
|
tty.py -- Terminal utilities
|
|
|
|
|
|
|
|
cmd.py -- build line-oriented command interpreters (used by pdb)
|
|
|
|
|
|
|
|
bdb.py -- A generic Python debugger base class (used by pdb)
|
|
|
|
|
|
|
|
ihooks.py -- Import hook support (for ni and rexec)
|
|
|
|
|
1997-08-14 23:52:46 -03:00
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
\section{Parsing Python}
|
|
|
|
|
|
|
|
(One could argue that these should all be documented together with the
|
1997-10-06 18:41:30 -03:00
|
|
|
parser module.)
|
1997-07-16 12:48:20 -03:00
|
|
|
|
1997-08-14 23:52:46 -03:00
|
|
|
tokenize.py -- regular expression that recognizes Python tokens; also
|
|
|
|
contains helper code for colorizing Python source code.
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
pyclbr.py -- Parse a Python file and retrieve classes and methods
|
|
|
|
|
|
|
|
|
|
|
|
\section{Platform specific modules}
|
|
|
|
|
|
|
|
ntpath.py -- equivalent of posixpath on 32-bit Windows
|
|
|
|
|
|
|
|
dospath.py -- equivalent of posixpath on MS-DOS
|
|
|
|
|
|
|
|
|
|
|
|
\section{Code objects and files, debugger etc.}
|
|
|
|
|
|
|
|
compileall.py -- force "compilation" of all .py files in a directory
|
|
|
|
|
|
|
|
py_compile.py -- "compile" a .py file to a .pyc file
|
|
|
|
|
|
|
|
repr.py -- Redo the `...` (representation) but with limits on most
|
|
|
|
sizes (used by pdb)
|
|
|
|
|
1997-07-16 12:48:20 -03:00
|
|
|
copy_reg.py -- helper to provide extensibility for pickle/cPickle
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
\section{Multimedia}
|
|
|
|
|
|
|
|
audiodev.py -- Plays audio files
|
|
|
|
|
|
|
|
sunau.py -- parse Sun and NeXT audio files
|
|
|
|
|
|
|
|
sunaudio.py -- interpret sun audio headers
|
|
|
|
|
|
|
|
toaiff.py -- Convert "arbitrary" sound files to AIFF files
|
|
|
|
|
|
|
|
sndhdr.py -- recognizing sound files
|
|
|
|
|
|
|
|
wave.py -- parse WAVE files
|
|
|
|
|
|
|
|
whatsound.py -- recognizing sound files
|
|
|
|
|
|
|
|
|
|
|
|
\section{Oddities}
|
|
|
|
|
|
|
|
These modules are probably also obsolete, or just not very useful.
|
|
|
|
|
1997-11-18 11:30:13 -04:00
|
|
|
bisect.py -- Bisection algorithms (this is actually useful at times)
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
dump.py -- Print python code that reconstructs a variable
|
|
|
|
|
|
|
|
find.py -- find files matching pattern in directory tree
|
|
|
|
|
1997-04-03 19:49:28 -04:00
|
|
|
fpformat.py -- General floating point formatting functions -- obsolete
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
grep.py -- grep
|
|
|
|
|
|
|
|
mutex.py -- Mutual exclusion -- for use with module sched
|
|
|
|
|
1997-04-30 16:41:48 -03:00
|
|
|
packmail.py -- create a self-unpacking \UNIX{} shell archive
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
poly.py -- Polynomials
|
|
|
|
|
|
|
|
sched.py -- event scheduler class
|
|
|
|
|
|
|
|
shutil.py -- utility functions usable in a shell-like program
|
|
|
|
|
|
|
|
util.py -- useful functions that don't fit elsewhere
|
|
|
|
|
|
|
|
zmod.py -- Compute properties of mathematical "fields"
|
|
|
|
|
|
|
|
tzparse.py -- Parse a timezone specification (unfinished)
|
|
|
|
|
|
|
|
|
|
|
|
\section{Obsolete}
|
|
|
|
|
1997-07-16 12:48:20 -03:00
|
|
|
newdir.py -- New dir() function (the standard dir() is now just as good)
|
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
addpack.py -- standard support for "packages" (use ni instead)
|
|
|
|
|
1997-04-03 19:49:28 -04:00
|
|
|
fmt.py -- text formatting abstractions (too slow)
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
1997-07-18 18:08:07 -03:00
|
|
|
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)
|
|
|
|
|
1997-03-14 00:12:52 -04:00
|
|
|
|
|
|
|
\section{Extension modules}
|
|
|
|
|
1997-03-27 16:57:52 -04:00
|
|
|
bsddbmodule.c -- Interface to the Berkeley DB interface (yet another
|
|
|
|
dbm clone).
|
|
|
|
|
|
|
|
cursesmodule.c -- Curses interface.
|
|
|
|
|
1997-06-02 14:34:02 -03:00
|
|
|
dbhashmodule.c -- Obsolete; this functionality is now provided by
|
|
|
|
bsddbmodule.c.
|
1997-03-27 16:57:52 -04:00
|
|
|
|
|
|
|
dlmodule.c -- A highly experimental and dangerous device for calling
|
|
|
|
arbitrary C functions in arbitrary shared libraries.
|
|
|
|
|
|
|
|
newmodule.c -- Tommy Burnette's `new' module (creates new empty
|
|
|
|
objects of certain kinds) -- dangerous.
|
|
|
|
|
|
|
|
nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface.
|
|
|
|
|
|
|
|
timingmodule.c -- Measure time intervals to high resolution (obsolete
|
|
|
|
-- use time.clock() instead).
|
|
|
|
|
1997-04-30 16:41:48 -03:00
|
|
|
resource.c -- Interface to getrusage() and friends.
|
|
|
|
|
1997-06-02 14:34:02 -03:00
|
|
|
stdwinmodule.c -- Interface to STDWIN (an old, unsupported
|
|
|
|
platform-independent GUI package). Obsolete; use Tkinter for a
|
|
|
|
platform-independent GUI instead.
|
|
|
|
|
1997-03-27 16:57:52 -04:00
|
|
|
The following are SGI specific:
|
|
|
|
|
|
|
|
clmodule.c -- Interface to the SGI compression library.
|
|
|
|
|
|
|
|
svmodule.c -- Interface to the ``simple video'' board on SGI Indigo
|
|
|
|
(obsolete hardware).
|