]> granicus.if.org Git - python/commitdiff
Adjusted to use the new module synopsis support macros.
authorFred Drake <fdrake@acm.org>
Thu, 23 Jul 1998 17:59:49 +0000 (17:59 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 23 Jul 1998 17:59:49 +0000 (17:59 +0000)
139 files changed:
Doc/lib/libaifc.tex
Doc/lib/libal.tex
Doc/lib/liballos.tex
Doc/lib/libamoeba.tex
Doc/lib/libanydbm.tex
Doc/lib/libarray.tex
Doc/lib/libaudioop.tex
Doc/lib/libbase64.tex
Doc/lib/libbasehttp.tex
Doc/lib/libbastion.tex
Doc/lib/libbinascii.tex
Doc/lib/libbinhex.tex
Doc/lib/libbisect.tex
Doc/lib/libbltin.tex
Doc/lib/libcalendar.tex
Doc/lib/libcd.tex
Doc/lib/libcgi.tex
Doc/lib/libcmath.tex
Doc/lib/libcmd.tex
Doc/lib/libcode.tex
Doc/lib/libcommands.tex
Doc/lib/libcopy.tex
Doc/lib/libcopyreg.tex
Doc/lib/libcrypt.tex
Doc/lib/libcrypto.tex
Doc/lib/libdbm.tex
Doc/lib/libdis.tex
Doc/lib/liberrno.tex
Doc/lib/libexcs.tex
Doc/lib/libfcntl.tex
Doc/lib/libfileinput.tex
Doc/lib/libfl.tex
Doc/lib/libfm.tex
Doc/lib/libfnmatch.tex
Doc/lib/libformatter.tex
Doc/lib/libftplib.tex
Doc/lib/libgdbm.tex
Doc/lib/libgetopt.tex
Doc/lib/libgl.tex
Doc/lib/libglob.tex
Doc/lib/libgopherlib.tex
Doc/lib/libgrp.tex
Doc/lib/libgzip.tex
Doc/lib/libhtmllib.tex
Doc/lib/libhttplib.tex
Doc/lib/libimageop.tex
Doc/lib/libimaplib.tex
Doc/lib/libimgfile.tex
Doc/lib/libimghdr.tex
Doc/lib/libimp.tex
Doc/lib/libjpeg.tex
Doc/lib/libkeyword.tex
Doc/lib/liblocale.tex
Doc/lib/libmailbox.tex
Doc/lib/libmailcap.tex
Doc/lib/libmain.tex
Doc/lib/libmarshal.tex
Doc/lib/libmath.tex
Doc/lib/libmd5.tex
Doc/lib/libmimetools.tex
Doc/lib/libmimetypes.tex
Doc/lib/libmimify.tex
Doc/lib/libmisc.tex
Doc/lib/libmm.tex
Doc/lib/libmpz.tex
Doc/lib/libmultifile.tex
Doc/lib/libni.tex
Doc/lib/libnntplib.tex
Doc/lib/liboperator.tex
Doc/lib/libos.tex
Doc/lib/libpanel.tex
Doc/lib/libparser.tex
Doc/lib/libpdb.tex
Doc/lib/libpickle.tex
Doc/lib/libpopen2.tex
Doc/lib/libpoplib.tex
Doc/lib/libposix.tex
Doc/lib/libposixfile.tex
Doc/lib/libppath.tex
Doc/lib/libpprint.tex
Doc/lib/libprofile.tex
Doc/lib/libpwd.tex
Doc/lib/libpython.tex
Doc/lib/libqueue.tex
Doc/lib/libquopri.tex
Doc/lib/librand.tex
Doc/lib/librandom.tex
Doc/lib/libre.tex
Doc/lib/libregex.tex
Doc/lib/libregsub.tex
Doc/lib/libresource.tex
Doc/lib/librestricted.tex
Doc/lib/librexec.tex
Doc/lib/librfc822.tex
Doc/lib/librgbimg.tex
Doc/lib/librotor.tex
Doc/lib/libselect.tex
Doc/lib/libsgi.tex
Doc/lib/libsgmllib.tex
Doc/lib/libshelve.tex
Doc/lib/libsignal.tex
Doc/lib/libsite.tex
Doc/lib/libsmtplib.tex
Doc/lib/libsocket.tex
Doc/lib/libsocksvr.tex
Doc/lib/libsomeos.tex
Doc/lib/libsoundex.tex
Doc/lib/libstat.tex
Doc/lib/libstdwin.tex
Doc/lib/libstring.tex
Doc/lib/libstrings.tex
Doc/lib/libstrio.tex
Doc/lib/libstruct.tex
Doc/lib/libsunaudio.tex
Doc/lib/libsymbol.tex
Doc/lib/libsys.tex
Doc/lib/libsyslog.tex
Doc/lib/libtempfile.tex
Doc/lib/libtemplate.tex
Doc/lib/libtermios.tex
Doc/lib/libthread.tex
Doc/lib/libthreading.tex
Doc/lib/libtime.tex
Doc/lib/libtoken.tex
Doc/lib/libtraceback.tex
Doc/lib/libtypes2.tex
Doc/lib/libunix.tex
Doc/lib/liburllib.tex
Doc/lib/liburlparse.tex
Doc/lib/libuser.tex
Doc/lib/libuserdict.tex
Doc/lib/libuu.tex
Doc/lib/libwhichdb.tex
Doc/lib/libwhrandom.tex
Doc/lib/libwww.tex
Doc/lib/libxdrlib.tex
Doc/lib/libxmllib.tex
Doc/lib/libzlib.tex
Doc/templates/module.tex

index f86b1d8682ad728fc2fc92702288b9dccadc7850..d7433e70f2e7eb799bab642f1d711dafb4b00f45 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{aifc}}
-\label{module-aifc}
-\stmodindex{aifc}
+\declaremodule{standard}{aifc}
+
+\modulesynopsis{Read and write audio files in AIFF or AIFC format.}
+
 
 This module provides support for reading and writing AIFF and AIFF-C
 files.  AIFF is Audio Interchange File Format, a format for storing
index ed675a9fcfe4095fca3bfcbff9776a372d586131..8b9a8f8f88b45aed8204290a549756a51410aedf 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{al}}
-\label{module-al}
-\bimodindex{al}
+\declaremodule{builtin}{al}
+
+\modulesynopsis{Audio functions on the SGI.}
+
 
 This module provides access to the audio facilities of the SGI Indy
 and Indigo workstations.  See section 3A of the IRIX man pages for
@@ -160,8 +162,10 @@ Get status information on last error.
 
 
 \section{Standard Module \module{AL}}
-\nodename{AL (uppercase)}
-\stmodindex{AL}
+\declaremodule{standard}{AL}
+
+\modulesynopsis{Constants used with the \module{al} module.}
+
 
 This module defines symbolic constants needed to use the built-in
 module \module{al} (see above); they are equivalent to those defined
index fca7567fc22559fe7f91c1fda13c5ad51ad45fdf..6def14929251b1d0c5079c899b69ce659b1e8fb4 100644 (file)
@@ -7,30 +7,4 @@ such as files and a clock.  The interfaces are generally modelled
 after the \UNIX{} or \C{} interfaces but they are available on most
 other systems as well.  Here's an overview:
 
-\begin{description}
-
-\item[os]
---- Miscellaneous OS interfaces.
-
-\item[time]
---- Time access and conversions.
-
-\item[getopt]
---- Parser for command line options.
-
-\item[tempfile]
---- Generate temporary file names.
-
-\item[errno]
---- Standard errno system symbols.
-
-\item[glob]
---- \UNIX{} shell style pathname pattern expansion.
-
-\item[fnmatch]
---- \UNIX{} shell style pathname pattern matching.
-
-\item[locale]
---- Internationalization services.
-
-\end{description}
+\localmoduletable
index 0d3df2b8b723543433d391874797b97888683353..e59b4877c2af6b5dcbf3b1c5e76554b212d31c2e 100644 (file)
@@ -1,8 +1,10 @@
 \chapter{Amoeba Specific Services}
 
 \section{Built-in Module \module{amoeba}}
-\label{module-amoeba}
-\bimodindex{amoeba}
+\declaremodule{builtin}{amoeba}
+
+\modulesynopsis{None}
+
 
 This module provides some object types and operations useful for
 Amoeba applications.  It is only available on systems that support
index bba7714c1059de550037a2f2b6c7ae1515eb88ed..745605ac80a6efa875694c16f552058df3a02b52 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{anydbm}}
-\label{module-anydbm}
-\stmodindex{anydbm}
+\declaremodule{standard}{anydbm}
+
+\modulesynopsis{Generic interface to DBM-style database modules.}
+
 
 \module{anydbm} is a generic interface to variants of the DBM
 database --- \module{dbhash}\refbimodindex{dbhash},
@@ -45,8 +47,10 @@ strings.
 
 
 \section{Standard Module \module{dumbdbm}}
-\label{module-dumbdbm}
-\stmodindex{dumbdbm}
+\declaremodule{standard}{dumbdbm}
+
+\modulesynopsis{None}
+
 
 A simple and slow database implemented entirely in Python.  This
 should only be used when no other DBM-style database is available.
index 180be3498d5d67f4637f3064722083b0b16e7677..4c8b5f2defdd4414db1ff735da64dbbfe4c1c03d 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{array}}
-\label{module-array}
-\bimodindex{array}
+\declaremodule{builtin}{array}
+
+\modulesynopsis{Efficient arrays of uniformly typed numeric values.}
+
 \index{arrays}
 
 This module defines a new object type which can efficiently represent
index 774a92e1d22e84251b0f1be9c2b4c955b61ce191..5081a60bcfb8c1db6f41bbd61fec4bd70fc518c3 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{audioop}}
-\label{module-audioop}
-\bimodindex{audioop}
+\declaremodule{builtin}{audioop}
+
+\modulesynopsis{Manipulate raw audio data.}
+
 
 The \module{audioop} module contains some useful operations on sound
 fragments.  It operates on sound fragments consisting of signed
index a9c3bd1e252d4d13937aea639a1f6e769a07a268..2d34e1d8208f7e9f6da76fa0d4b83570a5ff7188 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{base64}}
-\label{module-base64}
-\stmodindex{base64}
+\declaremodule{standard}{base64}
+
+\modulesynopsis{Encode/decode binary files using the MIME base64 encoding.}
+
 \indexii{base64}{encoding}
 \index{MIME!base64 encoding}
 
index 7ee55df0b13fb6de8d1f4da12f9ee64706f7a6de..df04202040e6d08a24f0710514cc1a26f6918dad 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{BaseHTTPServer}}
-\label{module-BaseHTTPServer}
-\stmodindex{BaseHTTPServer}
+\declaremodule{standard}{BaseHTTPServer}
+
+\modulesynopsis{Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).}
+
 
 \indexii{WWW}{server}
 \indexii{HTTP}{protocol}
index ddf6d9e684ce8795c1548ebaddcf6253e3e29fd8..08b435d3f5c271d14e5b0f2e3489daacf1b444c4 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{Bastion}}
-\label{module-Bastion}
-\stmodindex{Bastion}
+\declaremodule{standard}{Bastion}
+
+\modulesynopsis{Providing restricted access to objects.}
+
 
 % I'm concerned that the word 'bastion' won't be understood by people
 % for whom English is a second language, making the module name
index 77366ed8db9c3e12a06afe3949377808dc393358..8b72fd748fcadc5b18b3e44560797b1844cf2b47 100644 (file)
@@ -1,6 +1,9 @@
 \section{Built-in Module \module{binascii}}
-\label{module-binascii}
-\bimodindex{binascii}
+\declaremodule{builtin}{binascii}
+
+\modulesynopsis{Tools for converting between binary and various ascii-encoded binary
+representation}
+
 
 The \module{binascii} module contains a number of methods to convert
 between binary and various \ASCII{}-encoded binary
index 6a7d3c6bbffa1b4e79c38ef1f4a1735b437eed5d..782a2723b1226a0bf59527c02802eeec0460e760 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{binhex}}
-\label{module-binhex}
-\stmodindex{binhex}
+\declaremodule{standard}{binhex}
+
+\modulesynopsis{Encode and decode files in binhex4 format.}
+
 
 This module encodes and decodes files in binhex4 format, a format
 allowing representation of Macintosh files in \ASCII{}. On the Macintosh,
index 81cb550ca729eb7264684e36616d3a62ac4d98da..14f80271b48f80711a5a2b6940c61ef85cc28b3f 100644 (file)
@@ -3,8 +3,10 @@
 % <arw@pythonpros.com>.
 
 \section{Standard Module \module{bisect}}
-\stmodindex{bisect}
-\label{module-bisect}
+\declaremodule{standard}{bisect}
+
+\modulesynopsis{None}
+
 
 
 This module provides support for maintaining a list in sorted order
index a4a0dd02d6d0506fa7db47f89bd31b05ea8032e2..3c5dad495d677ef1f2ecbafe3d8014ef6c974f8f 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{__builtin__}}
-\label{module-builtin}
-\bimodindex{__builtin__}
+\declaremodule[builtin]{builtin}{__builtin__}
+
+\modulesynopsis{The set of built-in functions.}
+
 
 This module provides direct access to all `built-in' identifiers of
 Python; e.g. \code{__builtin__.open} is the full name for the built-in
index 79515b119dd5d0ab97603940140b939396bd280c..fc325f480ae6960ede9f2575531ab91eeba1a115 100644 (file)
@@ -1,8 +1,10 @@
 % This section was contributed by Drew Csillag <drew_csillag@geocities.com>.
 
 \section{Standard Module \module{calendar}}
-\label{module-calendar}
-\stmodindex{calendar}
+\declaremodule{standard}{calendar}
+
+\modulesynopsis{None}
+
 
 
 This module allows you to output calendars like the \UNIX{}
index 44111a3c70c7a7cc2a59ec59e67ce8981ec01840..7c114d8ccb5e21cb239cde18b1263de29cd7c851 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{cd}}
-\label{module-cd}
-\bimodindex{cd}
+\declaremodule{builtin}{cd}
+
+\modulesynopsis{Interface to the CD-ROM on Silicon Graphics systems.}
+
 
 This module provides an interface to the Silicon Graphics CD library.
 It is available only on Silicon Graphics systems.
index cb0a6fb5d221d31a22d583441e2f70ca9a9d81be..de8d86daecfa440107fef5955829ed284cb83d04 100644 (file)
@@ -1,6 +1,9 @@
 \section{Standard Module \module{cgi}}
-\label{module-cgi}
-\stmodindex{cgi}
+\declaremodule{standard}{cgi}
+
+\modulesynopsis{Common Gateway Interface, used to interpret forms in server-side
+scripts.}
+
 \indexii{WWW}{server}
 \indexii{CGI}{protocol}
 \indexii{HTTP}{protocol}
index adce12f22d3f4c50ceb8d2877775794bb68b1d21..53379672eaf234fdfa68fa695598c772563649b9 100644 (file)
@@ -1,7 +1,9 @@
 \section{Built-in Module \module{cmath}}
-\label{module-cmath}
+\declaremodule{builtin}{cmath}
+
+
+\modulesynopsis{Mathematical functions for complex numbers.}
 
-\bimodindex{cmath}
 This module is always available.
 It provides access to mathematical functions for complex numbers.
 The functions are:
index 53935d5fea3f6a93524f4e22f6668392c01c8326..d5d6cf8121185abc4020467da2c51cc6ecb3b13a 100644 (file)
@@ -1,7 +1,10 @@
 % Documentation by ESR
 \section{Standard Module \module{cmd}}
-\stmodindex{cmd}
-\label{module-cmd}
+\declaremodule{standard}{cmd}
+
+\modulesynopsis{Build line-oriented command interpreters; this is used by module
+\module{pdb}.}
+
 
 The \class{Cmd} class provides a simple framework for writing
 line-oriented command interpreters.  These are often useful for
index 023d276a11c235c532a623aa3efdd58bcf820339..12728c7faed641037b28ceae2f0898ff0c36dca5 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{code}}
-\label{module-code}
-\stmodindex{code}
+\declaremodule{standard}{code}
+
+\modulesynopsis{Code object services.}
+
 
 The \code{code} module defines operations pertaining to Python code
 objects.
index 7ca3ede3f1343ba585ef4ea39710f88680e67f76..bea14015f0cc58840bfdb112da53cd0b0781630f 100644 (file)
@@ -1,8 +1,10 @@
 % Documentation written by Sue Williams.
 
 \section{Standard Module \module{commands}}
-\stmodindex{commands}
-\label{module-commands}
+\declaremodule{standard}{commands}
+
+\modulesynopsis{Wrapper functions for \function{os.popen()}.}
+
 
 The \module{commands} module contains wrapper functions for
 \function{os.popen()} which take a system command as a string and
index c106ecae631e7ac0af64134cbd002a7006f9b2ad..c0194768e3359a799a3c8a5e797648e6d66f0129 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{copy}}
-\label{module-copy}
-\stmodindex{copy}
+\declaremodule{standard}{copy}
+
+\modulesynopsis{Shallow and deep copy operations.}
+
 \setindexsubitem{(copy function)}
 \ttindex{copy}
 \ttindex{deepcopy}
index 7dabf42f81055dfd5e595cf6004d9389934e28f1..0874b4ecdc9c8bfa83d8c9aac649becbbdd2516c 100644 (file)
@@ -1,13 +1,13 @@
 \section{Standard Module \module{copy_reg}}
-% Note that the label is a little off; the underscore causes LaTeX to
-% yell & scream.
-\label{module-copyreg}
-\stmodindex{copy_reg}
+\declaremodule[copyreg]{standard}{copy_reg}
 
-The \code{copy_reg} module provides support for the
-\code{pickle}\refstmodindex{pickle} and
-\code{cPickle}\refbimodindex{cPickle} modules.  The
-\code{copy}\refstmodindex{copy} module is likely to use this in the
+\modulesynopsis{Register \module{pickle} support functions.}
+
+
+The \module{copy_reg} module provides support for the
+\module{pickle}\refstmodindex{pickle} and
+\module{cPickle}\refbimodindex{cPickle} modules.  The
+\module{copy}\refstmodindex{copy} module is likely to use this in the
 future as well.  It provides configuration information about object
 constructors which are not classes.  Such constructors may be factory
 functions or class instances.
index 8e9a7d31317a794951b650f900be3bf2b7293737..418b9d5006c72a6f08bef1d1a4238fbe4ca4be71 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{crypt}}
-\label{module-crypt}
-\bimodindex{crypt}
+\declaremodule{builtin}{crypt}
+
+\modulesynopsis{The \cfunction{crypt()} function used to check \UNIX{} passwords.}
+
 
 This module implements an interface to the \manpage{crypt}{3} routine,
 which is a one-way hash function based upon a modified DES algorithm;
index 339a9aa50f7dc4200c4152c45753f3af39fda785..1353342603109090095a5a528734718e6087ab2c 100644 (file)
@@ -6,18 +6,7 @@ The modules described in this chapter implement various algorithms of
 a cryptographic nature.  They are available at the discretion of the
 installation.  Here's an overview:
 
-\begin{description}
-
-\item[md5]
---- RSA's MD5 message digest algorithm.
-
-\item[mpz]
---- Interface to the GNU MP library for arbitrary precision arithmetic.
-
-\item[rotor]
---- Enigma-like encryption and decryption.
-
-\end{description}
+\localmoduletable
 
 Hardcore cypherpunks will probably find the cryptographic modules
 written by Andrew Kuchling of further interest; the package adds
index c4317fefd4a586dbd3bea2d36eb4929e8d62dbb9..b7ee6477a3bfa26f946ae62303906f45f1d22f08 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{dbm}}
-\label{module-dbm}
-\bimodindex{dbm}
+\declaremodule{builtin}{dbm}
+
+\modulesynopsis{The standard ``database'' interface, based on ndbm.}
+
 
 The \code{dbm} module provides an interface to the \UNIX{}
 \code{(n)dbm} library.  Dbm objects behave like mappings
index eb60150ca815d06c388e47a66e9bd8cd5cb01f23..9c7fee6e9fa76a31ccb59d2de7b813c8a1cc9495 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{dis}}
-\stmodindex{dis}
-\label{module-dis}
+\declaremodule{standard}{dis}
+
+\modulesynopsis{Disassembler.}
+
 
 The \module{dis} module supports the analysis of Python byte code by
 disassembling it.  Since there is no Python assembler, this module
index 40ab90d2695329fa63c34599deb4c9aedb5a786d..c21f0fd83676cf2edc5cdb84d979aeb4dd79c741 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{errno}}
-\label{module-errno}
-\stmodindex{errno}
+\declaremodule{standard}{errno}
+
+\modulesynopsis{Standard errno system symbols.}
+
 
 
 This module makes available standard errno system symbols.
index 7d2d85fa84549414ede4b27f26e00661e4d9a6cc..02325afd0445986b8563b48de0e580b58addfce5 100644 (file)
@@ -2,6 +2,7 @@
 \label{module-exceptions}
 \stmodindex{exceptions}
 
+
 Exceptions can be class objects or string objects.  While
 traditionally, most exceptions have been string objects, in Python
 1.5, all standard exceptions have been converted to class objects,
index 1c64af928a5f9e5b047aa62719563a5ed09f68db..e693067e0495fca166c717550c9906f0d0032ada 100644 (file)
@@ -1,7 +1,9 @@
 % Manual text by Jaap Vermeulen
 \section{Built-in Module \module{fcntl}}
-\label{module-fcntl}
-\bimodindex{fcntl}
+\declaremodule{builtin}{fcntl}
+
+\modulesynopsis{The \function{fcntl()} and \function{ioctl()} system calls.}
+
 \indexii{UNIX@\UNIX{}}{file control}
 \indexii{UNIX@\UNIX{}}{I/O control}
 
index 0c0e81bac24a2999aec8f4ff9660fbacaa7986ff..1613cfa7d17cd22dbbc7707d850aae22600041ae 100644 (file)
@@ -1,8 +1,11 @@
 % Documentation heavily adapted from module docstring.
 
 \section{Standard Module \module{fileinput}}
-\stmodindex{fileinput}
-\label{module-fileinput}
+\declaremodule{standard}{fileinput}
+
+\modulesynopsis{Perl-like iteration over lines from multiple input streams, with
+``save in place'' capability.}
+
 
 This module implements a helper class and functions to quickly write a
 loop over standard input or a list of files.
index 7ebec7dcf74a737398e2fb66a6851e693ca81966..601b2c8beaf16ca271b66963ec49996a09a54f40 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{fl}}
-\label{module-fl}
-\bimodindex{fl}
+\declaremodule{builtin}{fl}
+
+\modulesynopsis{FORMS library interface for GUI applications.}
+
 
 This module provides an interface to the FORMS Library\index{FORMS
 Library} by Mark Overmars\index{Overmars, Mark}.  The source for the
@@ -463,8 +465,10 @@ FORMS objects have these data attributes; see the FORMS documentation:
 \end{tableiii}
 
 \section{Standard Module \module{FL}}
-\label{module-FLuppercase}
-\stmodindex{FL}
+\declaremodule{standard}{FL}
+
+\modulesynopsis{Constants used with the \module{fl} module.}
+
 
 This module defines symbolic constants needed to use the built-in
 module \module{fl} (see above); they are equivalent to those defined in
@@ -478,8 +482,10 @@ from FL import *
 \end{verbatim}
 
 \section{Standard Module \module{flp}}
-\label{module-flp}
-\stmodindex{flp}
+\declaremodule{standard}{flp}
+
+\modulesynopsis{Loading functions for stored FORMS designs.}
+
 
 This module defines functions that can read form definitions created
 by the `form designer' (\program{fdesign}) program that comes with the
index abcbaa46210625445d21100b1a5684c1306c1e83..b52fd2656412d7215441d420d7045ace26cff8ed 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{fm}}
-\label{module-fm}
-\bimodindex{fm}
+\declaremodule{builtin}{fm}
+
+\modulesynopsis{\emph{Font Manager} interface for SGI workstations.}
+
 
 This module provides access to the IRIS \emph{Font Manager} library.
 \index{Font Manager, IRIS}
index f2f82bafeb92e39286f341cdf82dc266d526fda1..b1f3a1b9b2f3af4ce9cdbc36d08b29873776b62b 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{fnmatch}}
-\label{module-fnmatch}
-\stmodindex{fnmatch}
+\declaremodule{standard}{fnmatch}
+
+\modulesynopsis{\UNIX{} shell style pathname pattern matching.}
+
 
 This module provides support for \UNIX{} shell-style wildcards, which
 are \emph{not} the same as regular expressions (which are documented
index 6a97f809d96eff13cea5c21aeed3e5e9ede82a4e..c1cf14ff2ca69532ff933a06cb6cdbd0eeeb78b2 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{formatter}}
-\label{module-formatter}
-\stmodindex{formatter}
+\declaremodule{standard}{formatter}
+
+\modulesynopsis{Generic output formatter and device interface.}
+
 
 
 This module supports two interface definitions, each with mulitple
index 8ba2c61d72f8434b237d0e924bc225a96e23f88d..00b01a71fc1110043ea11c63cb688fd0edea93cf 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{ftplib}}
-\label{module-ftplib}
-\stmodindex{ftplib}
+\declaremodule{standard}{ftplib}
+
+\modulesynopsis{FTP protocol client (requires sockets).}
+
 \indexii{FTP}{protocol}
 
 
index 8f2d7d1bf02e24494871f85052264ec2b45c2eff..844c3b3be8df3c8d1a15d5f5b0afaba1c3fb71fd 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{gdbm}}
-\label{module-gdbm}
-\bimodindex{gdbm}
+\declaremodule{builtin}{gdbm}
+
+\modulesynopsis{GNU's reinterpretation of dbm.}
+
 
 % Note that if this section appears on the same page as the first
 % paragraph of the dbm module section, makeindex will produce the
index be00fefa640088479b15c77e00035d0869b606df..6f839a7ab03ba257fde2829b7533d9502a72f833 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{getopt}}
-\label{module-getopt}
-\stmodindex{getopt}
+\declaremodule{standard}{getopt}
+
+\modulesynopsis{Parser for command line options.}
+
 
 This module helps scripts to parse the command line arguments in
 \code{sys.argv}.
index abbaf1051cd33cccb780f4717984bf1b7ba2f4ae..68244184f6b74ab2edb1e77a39118f360ea13a08 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{gl}}
-\label{module-gl}
-\bimodindex{gl}
+\declaremodule{builtin}{gl}
+
+\modulesynopsis{Functions from the Silicon Graphics \emph{Graphics Library}.}
+
 
 This module provides access to the Silicon Graphics
 \emph{Graphics Library}.
@@ -183,15 +185,22 @@ def main():
 main()
 \end{verbatim}
 %
-\section{Standard Modules \module{GL} and \module{DEVICE}}
-\nodename{GL and DEVICE}
-\stmodindex{GL}
-\stmodindex{DEVICE}
-
-These modules define the constants used by the Silicon Graphics
-\emph{Graphics Library}
-that C programmers find in the header files
-\file{<gl/gl.h>}
-and
-\file{<gl/device.h>}.
-Read the module source files for details.
+\section{Standard Module \module{DEVICE}}
+\declaremodule{standard}{DEVICE}
+
+\modulesynopsis{Constants used with the \module{gl} module.}
+
+This modules defines the constants used by the Silicon Graphics
+\emph{Graphics Library} that C programmers find in the header file
+\code{<gl/device.h>}.
+Read the module source file for details.
+
+
+\section{Standard Module \module{GL}}
+\declaremodule{standard}{GL}
+
+\modulesynopsis{Constants used with the \module{gl} module.}
+
+This module contains constants used by the Silicon Graphics
+\emph{Graphics Library} from the C header file \code{<gl/gl.h>}.
+Read the module source file for details.
index 10f667ad69bec73f0610c5884cb06aa4e1b26955..8c93e43e59cc623cfad88dd3286486ae339f199f 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{glob}}
-\label{module-glob}
-\stmodindex{glob}
+\declaremodule{standard}{glob}
+
+\modulesynopsis{\UNIX{} shell style pathname pattern expansion.}
+
 
 The \module{glob} module finds all the pathnames matching a specified
 pattern according to the rules used by the \UNIX{} shell.  No tilde
index 156d6d76fd2681cc074286183dca600f2c110fa4..a6e6fc31b26e58cbfdcc161e91916d319f0a935f 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{gopherlib}}
-\label{module-gopherlib}
-\stmodindex{gopherlib}
+\declaremodule{standard}{gopherlib}
+
+\modulesynopsis{Gopher protocol client (requires sockets).}
+
 \indexii{Gopher}{protocol}
 
 
index 551171b0302f31b2048df4005c99c405efe427e9..986c831d8131eae874393c5fd680684b73d06154 100644 (file)
@@ -1,7 +1,9 @@
 \section{Built-in Module \module{grp}}
-\label{module-grp}
+\declaremodule{builtin}{grp}
+
+
+\modulesynopsis{The group database (\function{getgrnam()} and friends).}
 
-\bimodindex{grp}
 This module provides access to the \UNIX{} group database.
 It is available on all \UNIX{} versions.
 
index f649a4d8df266f0cda0f831c547dd4d88040be51..75388a899848631d5a9417483159c38047255e17 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{gzip}}
-\label{module-gzip}
-\stmodindex{gzip}
+\declaremodule{standard}{gzip}
+
+\modulesynopsis{None}
+
 
 The data compression provided by the \code{zlib} module is compatible
 with that used by the GNU compression program \program{gzip}.
index c856b42e1542140868fac9925ad7b28204fbed08..899e76ede3595e0878201f8facf89bbe7b301728 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{htmllib}}
-\label{module-htmllib}
-\stmodindex{htmllib}
+\declaremodule{standard}{htmllib}
+
+\modulesynopsis{A parser for HTML documents.}
+
 \index{HTML}
 \index{hypertext}
 
index 55ec9b9899847219d418f8d32ec2903929e161ea..e2179673ba8b66e8f6b9db96d5501dd5ccff4c90 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{httplib}}
-\label{module-httplib}
-\stmodindex{httplib}
+\declaremodule{standard}{httplib}
+
+\modulesynopsis{HTTP protocol client (requires sockets).}
+
 \indexii{HTTP}{protocol}
 
 
index c21be4848ea4ac246d5d36c37878249bf8704d12..1c0124174e053194752bedb0c81c3e054d9212ad 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{imageop}}
-\label{module-imageop}
-\bimodindex{imageop}
+\declaremodule{builtin}{imageop}
+
+\modulesynopsis{Manipulate raw image data.}
+
 
 The \module{imageop} module contains some useful operations on images.
 It operates on images consisting of 8 or 32 bit pixels stored in
index fa3ec68dacfcdd9df71898598eb775131cd02f02..5501cd24e3c8181be4543cf5993bf6a9f6243d84 100644 (file)
@@ -4,8 +4,10 @@
 % The imaplib module was written by Piers Lauder.
 
 \section{Standard Module \module{imaplib}}
-\stmodindex{imaplib}
-\label{module-imaplib}
+\declaremodule{standard}{imaplib}
+
+\modulesynopsis{IMAP4 protocol client (requires sockets).}
+
 \indexii{IMAP4}{protocol}
 
 This module defines a class, \class{IMAP4}, which encapsulates a
index e74fe9e74387a97081524c2d8f970cf6960c4b0d..d4c30023a372c2091e422c7e25ac25a72dbcda98 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{imgfile}}
-\label{module-imgfile}
-\bimodindex{imgfile}
+\declaremodule{builtin}{imgfile}
+
+\modulesynopsis{Support for SGI imglib files.}
+
 
 The \module{imgfile} module allows Python programs to access SGI imglib image
 files (also known as \file{.rgb} files).  The module is far from
index 9e58fdde198e1c61217e1ab432367f75ce8e25f1..637dca2d29c9398a06f52a359a74a6a5cacd24e5 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{imghdr}}
-\label{module-imghdr}
-\stmodindex{imghdr}
+\declaremodule{standard}{imghdr}
+
+\modulesynopsis{Determine the type of image contained in a file or byte stream.}
+
 
 The \module{imghdr} module determines the type of image contained in a
 file or byte stream.
index 7d4f8d1d4255e97d2e9f3d1e312d57d78ddb557d..945ffde1159d62219c2bbe07045b6b86e0f94f09 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{imp}}
-\label{module-imp}
-\bimodindex{imp}
+\declaremodule{builtin}{imp}
+
+\modulesynopsis{Access the implementation of the \keyword{import} statement.}
+
 \index{import}
 
 This module provides an interface to the mechanisms used to implement
index 76e70af7147a0315109caa02b6a05455e71c188e..2c227ff1658c6f16ee68d49edc45a58544421436 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{jpeg}}
-\label{module-jpeg}
-\bimodindex{jpeg}
+\declaremodule{builtin}{jpeg}
+
+\modulesynopsis{Read and write image files in compressed JPEG format.}
+
 
 The module \module{jpeg} provides access to the jpeg compressor and
 decompressor written by the Independent JPEG Group%
index 7a263efb256feb2e278acec810c446fc06c55d03..24635a5a99b524d4ad3a941fd4f062e1473beeae 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{keyword}}
-\label{module-keyword}
-\stmodindex{keyword}
+\declaremodule{standard}{keyword}
+
+\modulesynopsis{Test whether a string is a keyword in the Python language.}
+
 
 This module allows a Python program to determine if a string is a
 keyword.  A single function is provided:
index 07361b84e9a9dce8e28e31606a846356325aa9be..9b0887290e85834de88b99d1a6afc9ac3d074bb2 100644 (file)
@@ -1,7 +1,9 @@
 \section{Standard Module \module{locale}}
-\stmodindex{locale}
+\declaremodule{standard}{locale}
+
+
+\modulesynopsis{Internationalization services.}
 
-\label{module-locale}
 
 The \code{locale} module opens access to the \POSIX{} locale database
 and functionality. The \POSIX{} locale mechanism allows applications
index 4ff2dedb669eb762b9b838ae9db60df8e36c2a38..5ebc57dca03e8b40d6cb7a8c2e1e286f7c10cef1 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{mailbox}}
-\label{module-mailbox}
-\stmodindex{mailbox}
+\declaremodule{standard}{mailbox}
+
+\modulesynopsis{Read various mailbox formats.}
+
 
 
 This module defines a number of classes that allow easy and uniform
index 0ea762afd00c52af90f962505e924d67ee84654e..8c8b7055c2d204fac64625e0f3d10908567c7204 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{mailcap}}
-\label{module-mailcap}
-\stmodindex{mailcap}
+\declaremodule{standard}{mailcap}
+
+\modulesynopsis{Mailcap file handling.}
+
 
 Mailcap files are used to configure how MIME-aware applications such
 as mail readers and Web browsers react to files with different MIME
index df1fbfbc3de5e13aecb3057c70f1d7838b548cc5..39edfd7ec0c99dc941771f06a19ca8f5b87609c4 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{__main__}}
-\label{module-main}
-\bimodindex{__main__}
+\declaremodule[main]{builtin}{__main__}
+
+\modulesynopsis{The environment where the top-level script is run.}
+
 This module represents the (otherwise anonymous) scope in which the
 interpreter's main program executes --- commands read either from
 standard input or from a script file.
index 5878cfa2e8cd9dab322b585aaf49e3d380464aac..ab7cd0521d1f8571a15aa0d55791c111a947a916 100644 (file)
@@ -1,6 +1,9 @@
 \section{Built-in Module \module{marshal}}
-\label{module-marshal}
-\bimodindex{marshal}
+\declaremodule{builtin}{marshal}
+
+\modulesynopsis{Convert Python objects to streams of bytes and back (with
+different constraints).}
+
 
 This module contains functions that can read and write Python
 values in a binary format.  The format is specific to Python, but
index 1cc6b202dbcca4a5d4be5bc99a5f36cd626b1496..7ecda2e22fc3b2a232b8f03230cfc60287ea99ef 100644 (file)
@@ -1,7 +1,9 @@
 \section{Built-in Module \module{math}}
-\label{module-math}
+\declaremodule{builtin}{math}
+
+
+\modulesynopsis{Mathematical functions (\function{sin()} etc.).}
 
-\bimodindex{math}
 This module is always available.
 It provides access to the mathematical functions defined by the \C{}
 standard.
index d1e73670e40e1272d6272c3a8d903a04d8805cd7..b754a660deb71ca7ec2515f907f88678f8c60a16 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{md5}}
-\label{module-md5}
-\bimodindex{md5}
+\declaremodule{builtin}{md5}
+
+\modulesynopsis{RSA's MD5 message digest algorithm.}
+
 
 This module implements the interface to RSA's MD5 message digest
 \index{message digest, MD5}
index 54d1fe04a3ff7efd5f0691f127ecbfbb0e3693d3..4cb130003cd4b87530c80c22c35b272aa806ff1d 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{mimetools}}
-\label{module-mimetools}
-\stmodindex{mimetools}
+\declaremodule{standard}{mimetools}
+
+\modulesynopsis{Tools for parsing MIME style message bodies.}
+
 
 
 This module defines a subclass of the \class{rfc822.Message} class and
index 6cfd8534ae3bbdbf50ccd9cada8d331e4263069f..afd5ccaaf5e9642ae177bb127e6f8dfe06e7c4fd 100644 (file)
@@ -3,8 +3,10 @@
 % mimetypes module.
 
 \section{Standard Module \module{mimetypes}}
-\label{module-mimetypes}
-\stmodindex{mimetypes}
+\declaremodule{standard}{mimetypes}
+
+\modulesynopsis{Mapping of filename extensions to MIME types.}
+
 \indexii{MIME}{content type}
 
 The \module{mimetypes} converts between a filename or URL and the MIME
index 366e940415a0f007353a0ed61e53de870f513235..87740b356624a1c04fb5e66518487698d19e93e1 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{mimify}}
-\label{module-mimify}
-\stmodindex{mimify}
+\declaremodule{standard}{mimify}
+
+\modulesynopsis{Mimification and unmimification of mail messages.}
+
 
 The mimify module defines two functions to convert mail messages to
 and from MIME format.  The mail message can be either a simple message
index 306c43c86b8414d46eea345f2645594797642735..6f79eda5e9acc9e0be6b2acfaab76465349350c0 100644 (file)
@@ -4,29 +4,4 @@
 The modules described in this chapter provide miscellaneous services
 that are available in all Python versions.  Here's an overview:
 
-\begin{description}
-
-\item[math]
---- Mathematical functions (\function{sin()} etc.).
-
-\item[cmath]
---- Mathematical functions for complex numbers.
-
-\item[whrandom]
---- Floating point pseudo-random number generator.
-
-\item[random]
---- Generate pseudo-random numbers with various common distributions.
-
-\item[array]
---- Efficient arrays of uniformly typed numeric values.
-
-\item[fileinput]
---- Perl-like iteration over lines from multiple input streams, with
-``save in place'' capability.
-
-\item[cmd]
---- Build line-oriented command interpreters; this is used by module
-\module{pdb}.
-
-\end{description}
+\localmoduletable
index 86609096023d49451adaaa0592ad905b5ca2dd31..22c14b4d7b3ade3f1a2dd2006625f36fbb1ed77f 100644 (file)
@@ -5,25 +5,4 @@ The modules described in this chapter implement various algorithms or
 interfaces that are mainly useful for multimedia applications.  They
 are available at the discretion of the installation.  Here's an overview:
 
-\begin{description}
-
-\item[audioop]
---- Manipulate raw audio data.
-
-\item[imageop]
---- Manipulate raw image data.
-
-\item[aifc]
---- Read and write audio files in AIFF or AIFC format.
-
-\item[jpeg]
---- Read and write image files in compressed JPEG format.
-
-\item[rgbimg]
---- Read and write image files in ``SGI RGB'' format (the module is
-\emph{not} SGI specific though)!
-
-\item[imghdr]
---- Determine the type of image contained in a file or byte stream.
-
-\end{description}
+\localmoduletable
index 707a3a812a1f87c184057b9be191eadcb4db3908..98f09a876bb559864c52ff6358cc9dab6f0f8437 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{mpz}}
-\label{module-mpz}
-\bimodindex{mpz}
+\declaremodule{builtin}{mpz}
+
+\modulesynopsis{Interface to the GNU MP library for arbitrary precision arithmetic.}
+
 
 This is an optional module.  It is only available when Python is
 configured to include it, which requires that the GNU MP software is
index ea92cdc62d3344ab38344f0b937ba80f1120a653..41f494e12677ccb56a5f5a509971344ee3e2392f 100644 (file)
@@ -1,7 +1,9 @@
 % Documentation by ESR
 \section{Standard Module \module{multifile}}
-\stmodindex{multiFile}
-\label{module-multifile}
+\declaremodule[multifile]{standard}{multiFile}
+
+\modulesynopsis{None}
+
 
 The \class{MultiFile} object enables you to treat sections of a text
 file as file-like input objects, with \code{''} being returned by
index 14ff3957add257f9795feb6072da8d17a6c9ba22..e962eea0ab888bbc2e751ae4b7214702afaa2dc2 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{ni}}
-\label{module-ni}
-\stmodindex{ni}
+\declaremodule{standard}{ni}
+
+\modulesynopsis{None}
+
 
 \strong{Warning: This module is obsolete.}  As of Python 1.5a4,
 package support (with different semantics for \code{__init__} and no
index b02f142d0d8d7fdb51fcb246e087d965fb913ddd..d6e0f81496352e1c882bc0f7dbcc8d4d9e610110 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{nntplib}}
-\label{module-nntplib}
-\stmodindex{nntplib}
+\declaremodule{standard}{nntplib}
+
+\modulesynopsis{NNTP protocol client (requires sockets).}
+
 \indexii{NNTP}{protocol}
 \index{Network News Transfer Protocol}
 
index 18057704049b11be5e4dba311e741a008285dcfc..f5186e0649d794744bfa8c572fe8fdb77270007f 100644 (file)
@@ -1,8 +1,10 @@
 % Contributed by Skip Montanaro, from the module's doc strings.
 
 \section{Built-in Module \module{operator}}
-\label{module-operator}
-\bimodindex{operator}
+\declaremodule{builtin}{operator}
+
+\modulesynopsis{All Python's standard operators as built-in functions.}
+
 
 The \module{operator} module exports a set of functions implemented in C
 corresponding to the intrinsic operators of Python.  For example,
index 05ce8b6df27da931257311d47e906bb2f096787d..b9f3f20f5dec620a610c8d1c7884d60bb16d7edb 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{os}}
-\label{module-os}
-\stmodindex{os}
+\declaremodule{standard}{os}
+
+\modulesynopsis{Miscellaneous OS interfaces.}
+
 
 This module provides a more portable way of using operating system
 (OS) dependent functionality than importing an OS dependent built-in
index 355380861cd2123a14f868771a8eefde63af9c25..66ac2a887c71947a6de4d3e21b620fc0d3d905b7 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{panel}}
-\label{module-panel}
-\stmodindex{panel}
+\declaremodule{standard}{panel}
+
+\modulesynopsis{None}
+
 
 \strong{Please note:} The FORMS library, to which the
 \code{fl}\refbimodindex{fl} module described above interfaces, is a
@@ -30,8 +32,10 @@ or
 \code{panel.defpanellist()}.
 
 \section{Standard Module \module{panelparser}}
-\label{module-panelparser}
-\stmodindex{panelparser}
+\declaremodule{standard}{panelparser}
+
+\modulesynopsis{None}
+
 
 This module defines a self-contained parser for S-expressions as output
 by the Panel Editor (which is written in Scheme so it can't help writing
@@ -46,8 +50,10 @@ For more details, read the module file.
 % XXXXJH should be funcdesc, I think
 
 \section{Built-in Module \module{pnl}}
-\label{module-pnl}
-\bimodindex{pnl}
+\declaremodule{builtin}{pnl}
+
+\modulesynopsis{None}
+
 
 This module provides access to the
 \emph{Panel Library}
index 6759a9fc78ee7262b2f6ce2d8a27b5e2c5c10fbb..cbea16d3a69e61fb27b2c5c7adf92051e58bc537 100644 (file)
 %
 
 \section{Built-in Module \module{parser}}
-\label{module-parser}
-\bimodindex{parser}
+\declaremodule{builtin}{parser}
+
+\modulesynopsis{Retrieve and submit parse trees from and to the runtime support
+environment.}
+
 \index{parsing!Python source code}
 
 The \module{parser} module provides an interface to Python's internal
index 5a19ea56ea00eefab891e64246363ac71e624b36..ee2ac0a8687325ef4318ac4b68d9cb82ddbfd109 100644 (file)
@@ -1,6 +1,8 @@
 \chapter{The Python Debugger}
-\label{module-pdb}
-\stmodindex{pdb}
+\declaremodule{standard}{pdb}
+
+\modulesynopsis{None}
+
 \index{debugging}
 
 
index edd496f2836227947cb9a9496c9056223c1c6310..60999ebeb5708629068ce4e87284d5ccffa1d481 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{pickle}}
-\label{module-pickle}
-\stmodindex{pickle}
+\declaremodule{standard}{pickle}
+
+\modulesynopsis{Convert Python objects to streams of bytes and back.}
+
 \index{persistency}
 \indexii{persistent}{objects}
 \indexii{serializing}{objects}
@@ -273,8 +275,10 @@ registration}
 
 
 \section{Built-in Module \module{cPickle}}
-\bimodindex{cPickle}
-\label{module-cPickle}
+\declaremodule{builtin}{cPickle}
+
+\modulesynopsis{Faster version of \module{pickle}, but not subclassable.}
+
 
 % This section was written by Fred L. Drake, Jr. <fdrake@acm.org>
 
index 9e8a0ca4ec63d36381275809fd79382ee46476b6..3bba4cc8cdd74969c84d28a5b8e5fd36c2613de0 100644 (file)
@@ -3,8 +3,10 @@
 % Drake, Jr. <fdrake@acm.org>.
 
 \section{Standard Module \module{popen2}}
-\label{module-popen2}
-\stmodindex{popen2}
+\declaremodule{standard}{popen2}
+
+\modulesynopsis{None}
+
 
 This module allows you to spawn processes and connect their 
 input/output/error pipes and obtain their return codes.
index 12882e9dba20a126161a2a61eb3f260fcac8e888..2c21a7fdf4645149080775347588e062822cad87 100644 (file)
@@ -4,8 +4,10 @@
 %the imaplib ``chapter''.
 
 \section{Standard Module \module{poplib}}
-\stmodindex{poplib}
-\label{module-poplib}
+\declaremodule{standard}{poplib}
+
+\modulesynopsis{POP3 protocol client (requires sockets).}
+
 \indexii{POP3}{protocol}
 
 This module defines a class, \class{POP3}, which encapsulates a
index bccc283eb31ac216d16a0acf364bddea583f7d1d..b7d49b9014a42d9259a4f2b444008605a3b4fd5c 100644 (file)
@@ -1,6 +1,9 @@
 \section{Built-in Module \module{posix}}
-\label{module-posix}
-\bimodindex{posix}
+\declaremodule{builtin}{posix}
+
+\modulesynopsis{The most common \POSIX{} system calls (normally used via module
+\module{os}).}
+
 
 This module provides access to operating system functionality that is
 standardized by the \C{} Standard and the \POSIX{} standard (a thinly
index a1f853d0beb623da5256d17c65f624c0caf960b1..b1742f12a5086f7b2da6dcb9e638dda8e3a6d086 100644 (file)
@@ -1,7 +1,9 @@
 % Manual text and implementation by Jaap Vermeulen
 \section{Standard Module \module{posixfile}}
-\label{module-posixfile}
-\bimodindex{posixfile}
+\declaremodule{builtin}{posixfile}
+
+\modulesynopsis{A file-like object with support for locking.}
+
 \indexii{\POSIX{}}{file object}
 
 \emph{Note:} This module will become obsolete in a future release.
index 728fe3613b9a2b36d2cc58e249b20b0fc776534a..6373458f37ab428d28a6d4242a3820d238f6505b 100644 (file)
@@ -1,6 +1,7 @@
 \section{Standard Module \module{posixpath}}
-\label{module-posixpath}
-\stmodindex{posixpath}
+\declaremodule{standard}{posixpath}
+
+\modulesynopsis{Common \POSIX{} pathname manipulations.}
 
 This module implements some useful functions on \POSIX{} pathnames.
 
index 0ad1dc55418f5ec02e253c8430b19340049c0e46..063287523cb0c49cc55d56462c94bd28778ec750 100644 (file)
@@ -1,8 +1,10 @@
 %%  Author:  Fred L. Drake, Jr.                <fdrake@acm.org>
 
 \section{Standard Module \module{pprint}}
-\stmodindex{pprint}
-\label{module-pprint}
+\declaremodule{standard}{pprint}
+
+\modulesynopsis{Data pretty printer.}
+
 
 The \module{pprint} module provides a capability to ``pretty-print''
 arbitrary Python data structures in a form which can be used as input
index 61da9885a1860ee0f164a44ecd92cbd3791601ee..421812ab9b45d23e499e9f584d75aa3e2107c82a 100644 (file)
@@ -255,8 +255,10 @@ of algorithms to be directly compared to iterative implementations.
 
 
 \section{Reference Manual}
-\stmodindex{profile}
-\label{module-profile}
+\declaremodule{standard}{profile}
+
+\modulesynopsis{None}
+
 
 
 The primary entry point for the profiler is the global function
index 5275acd82deb739e8981a2f4cdc01d304a8df12b..32113b4f04a790ecfbf350d9ff7b2e736999c848 100644 (file)
@@ -1,7 +1,9 @@
 \section{Built-in Module \module{pwd}}
-\label{module-pwd}
+\declaremodule{builtin}{pwd}
+
+
+\modulesynopsis{The password database (\function{getpwnam()} and friends).}
 
-\bimodindex{pwd}
 This module provides access to the \UNIX{} password database.
 It is available on all \UNIX{} versions.
 
index 944f80fc835c9e74dc4c9a3faae0b6481cb5f2e6..37d1dfe9af3510fb06b59d8c759277c78afd1cda 100644 (file)
@@ -5,80 +5,4 @@ The modules described in this chapter provide a wide range of services
 related to the Python interpreter and its interaction with its
 environment.  Here's an overview:
 
-\begin{description}
-
-\item[sys]
---- Access system specific parameters and functions.
-
-\item[types]
---- Names for all built-in types.
-
-\item[UserDict]
---- Class wrapper for dictionary objects.
-
-\item[UserList]
---- Class wrapper for list objects.
-
-\item[operator]
---- All Python's standard operators as built-in functions.
-
-\item[traceback]
---- Print or retrieve a stack traceback.
-
-\item[pickle]
---- Convert Python objects to streams of bytes and back.
-
-\item[cPickle]
---- Faster version of \module{pickle}, but not subclassable.
-
-\item[copy_reg]
---- Register \module{pickle} support functions.
-
-\item[shelve]
---- Python object persistency.
-
-\item[copy]
---- Shallow and deep copy operations.
-
-\item[marshal]
---- Convert Python objects to streams of bytes and back (with
-different constraints).
-
-\item[imp]
---- Access the implementation of the \keyword{import} statement.
-
-\item[parser]
---- Retrieve and submit parse trees from and to the runtime support
-environment.
-
-\item[symbol]
---- Constants representing internal nodes of the parse tree.
-
-\item[token]
---- Constants representing terminal nodes of the parse tree.
-
-\item[keyword]
---- Test whether a string is a keyword in the Python language.
-
-\item[code]
---- Code object services.
-
-\item[pprint]
---- Data pretty printer.
-
-\item[dis]
---- Disassembler.
-
-\item[site]
---- A standard way to reference site-specific modules.
-
-\item[user]
---- A standard way to reference user-specific modules.
-
-\item[__builtin__]
---- The set of built-in functions.
-
-\item[__main__]
---- The environment where the top-level script is run.
-
-\end{description}
+\localmoduletable
index 680238d78a61cbe2d75d98955dc28ca26fcb39c8..3231e11b337e830735d72317493486e94699dcc7 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{Queue}}
-\stmodindex{Queue}
-\label{module-Queue}
+\declaremodule{standard}{Queue}
+
+\modulesynopsis{A stynchronized queue class.}
+
 
 
 The \module{Queue} module implements a multi-producer, multi-consumer
index abe07df3289143c53ab854deb538026f581c8c32..6b1d20916199fe32e2c2109e105b1a35a08f7386 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{quopri}}
-\label{module-quopri}
-\stmodindex{quopri}
+\declaremodule{standard}{quopri}
+
+\modulesynopsis{Encode/decode binary files using the MIME quoted-printable encoding.}
+
 
 This module performs quoted-printable transport encoding and decoding,
 as defined in \rfc{1521}: ``MIME (Multipurpose Internet Mail Extensions)
index a48ea221d29c2891e3a2cabafeeb5e503cefd196..7a5adea59b7438f4f23bee87fc31d762010a2ba2 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{rand}}
-\label{module-rand}
-\stmodindex{rand}
+\declaremodule{standard}{rand}
+
+\modulesynopsis{None}
+
 
 The \code{rand} module simulates the C library's \code{rand()}
 interface, though the results aren't necessarily compatible with any
index b76822e8ef1ac4feecb8151aee453ca95798f609..48068762cfdce11a644d2df5346092ad8df0c1fb 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{random}}
-\label{module-random}
-\stmodindex{random}
+\declaremodule{standard}{random}
+
+\modulesynopsis{Generate pseudo-random numbers with various common distributions.}
+
 
 This module implements pseudo-random number generators for various
 distributions: on the real line, there are functions to compute normal
index 849fa28414be102e6a035300745ca5ba6634be7f..c1942136503a0084c1fc70fe87fc56a0347c0092 100644 (file)
@@ -1,7 +1,9 @@
 \section{Built-in Module \module{re}}
-\label{module-re}
+\declaremodule{builtin}{re}
+
+
+\modulesynopsis{New Perl-style regular expression search and match operations.}
 
-\bimodindex{re}
 
 This module provides regular expression matching operations similar to
 those found in Perl.  It's 8-bit clean: the strings being processed
index e3adf55701a53c9d3f248aff58ed17500a7e2054..253d50bcd85344478c6b6266b822190d352100b2 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{regex}}
-\label{module-regex}
-\bimodindex{regex}
+\declaremodule{builtin}{regex}
+
+\modulesynopsis{Regular expression search and match operations.}
+
 
 This module provides regular expression matching operations similar to
 those found in Emacs.
index c390a494cc7eeb54d3ba06bfd603745485be7437..0a75f367088b4e5da0c097f424a4c346a8e443a8 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{regsub}}
-\label{module-regsub}
-\stmodindex{regsub}
+\declaremodule{standard}{regsub}
+
+\modulesynopsis{Substitution and splitting operations that use regular expressions.}
+
 
 This module defines a number of functions useful for working with
 regular expressions (see built-in module \code{regex}).
index bb0bff21831241aede067222fcea08bf54991fa0..887268eed557569353fe71768c5cf54f9e8b91ba 100644 (file)
@@ -1,7 +1,10 @@
 \section{Built-in Module \module{resource}}
-\label{module-resource}
+\declaremodule{builtin}{resource}
+
+
+\modulesynopsis{An interface to provide resource usage information on the current
+process.}
 
-\bimodindex{resource}
 This module provides basic mechanisms for measuring and controlling
 system resources utilized by a program.
 
index f78d7bb19291797da45e5e4e9f27f9e4d0ac6976..cbd38c55f98f5d318b7115216e706f8616cfb1f6 100644 (file)
@@ -63,15 +63,7 @@ class and instance object attribute \code{__dict__} are unavailable.
 Two modules provide the framework for setting up restricted execution
 environments:
 
-\begin{description}
-
-\item[rexec]
---- Basic restricted execution framework.
-
-\item[Bastion]
---- Providing restricted access to objects.
-
-\end{description}
+\localmoduletable
 
 \begin{seealso}
 \seetext{Andrew Kuchling, ``Restricted Execution HOWTO.''  Available
index 8778ae13fb6997fe3241be62364603346f0fb8fc..8881c932de8295dbb0b96ac48105e3da52c89438 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{rexec}}
-\label{module-rexec}
-\stmodindex{rexec}
+\declaremodule{standard}{rexec}
+
+\modulesynopsis{Basic restricted execution framework.}
+
 
 
 This module contains the \class{RExec} class, which supports
index 2d8fc7efa7c4a35e630ef9826103571146497767..fc6a58dba89e3c42a17168b4b53279d570ec8f44 100644 (file)
@@ -1,7 +1,9 @@
 \section{Standard Module \module{rfc822}}
-\label{module-rfc822}
-\stmodindex{rfc822}
+\declaremodule{standard}{rfc822}
 
+\modulesynopsis{Parse \rfc{822} style mail headers.}
+
+%\index{RFC!RFC 822}
 
 This module defines a class, \class{Message}, which represents a
 collection of ``email headers'' as defined by the Internet standard
index 73e4aaebb236bc22ec5739cc4c1bc87013f6649f..d06eb76e231476914aa23133f18a7cb92745cd3b 100644 (file)
@@ -1,6 +1,9 @@
 \section{Built-in Module \module{rgbimg}}
-\label{module-rgbimg}
-\bimodindex{rgbimg}
+\declaremodule{builtin}{rgbimg}
+
+\modulesynopsis{Read and write image files in ``SGI RGB'' format (the module is
+\emph{not} SGI specific though)!}
+
 
 The \module{rgbimg} module allows Python programs to access SGI imglib image
 files (also known as \file{.rgb} files).  The module is far from
index 63dc56e77f14b16b7cf30bb7e1c67895fea72826..a59e2ca0e5b17078377755fcfe8f32dfc0ea495e 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{rotor}}
-\label{module-rotor}
-\bimodindex{rotor}
+\declaremodule{builtin}{rotor}
+
+\modulesynopsis{Enigma-like encryption and decryption.}
+
 
 This module implements a rotor-based encryption algorithm, contributed by
 Lance Ellinghouse\index{Ellinghouse, Lance}.  The design is derived
index b7a8c85a9cdce69d9c2b5a664730832c1b9ca6ac..b8dfacc76eb88e633053ac6ab216ef19e5742a07 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{select}}
-\label{module-select}
-\bimodindex{select}
+\declaremodule{builtin}{select}
+
+\modulesynopsis{Wait for I/O completion on multiple streams.}
+
 
 This module provides access to the function \cfunction{select()}
 available in most \UNIX{} versions.  It defines the following:
index b1bb5cb0ea698f3e5f63d244cabf3cba1f58f8d7..ca17ad03b6394ee96f73ab8ddcbc53b9ea1dee5b 100644 (file)
@@ -3,3 +3,5 @@
 
 The modules described in this chapter provide interfaces to features
 that are unique to SGI's IRIX operating system (versions 4 and 5).
+
+\localmoduletable
index f086b4bae931be7691f1b9f23455eb926dd4444d..642dacdf52792f916f23ba7e578525fab845edfc 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{sgmllib}}
-\label{module-sgmllib}
-\stmodindex{sgmllib}
+\declaremodule{standard}{sgmllib}
+
+\modulesynopsis{Only as much of an SGML parser as needed to parse HTML.}
+
 \index{SGML}
 
 This module defines a class \class{SGMLParser} which serves as the
index 90afbc62784a5733cba10ad4b4d27c4ae4c018f4..6b5aa76bb5c6634511321da58f786167f81847ac 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{shelve}}
-\label{module-shelve}
-\stmodindex{shelve}
+\declaremodule{standard}{shelve}
+
+\modulesynopsis{Python object persistency.}
+
 
 A ``shelf'' is a persistent, dictionary-like object.  The difference
 with ``dbm'' databases is that the values (not the keys!) in a shelf
index 4a8b3b4bcb63e4a51bad74a743e3ffe5afcef0d7..86d69676e5fb5732e8858ec4c5180cd25ed85c3c 100644 (file)
@@ -1,7 +1,9 @@
 \section{Built-in Module \module{signal}}
-\label{module-signal}
+\declaremodule{builtin}{signal}
+
+
+\modulesynopsis{Set handlers for asynchronous events.}
 
-\bimodindex{signal}
 This module provides mechanisms to use signal handlers in Python.
 Some general rules for working with signals handlers:
 
index 84b1e64048244c7a009a2d0723cf56f32b81ac2e..020b266ffd829147532b50d4f32caa2839819876 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{site}}
-\label{module-site}
-\stmodindex{site}
+\declaremodule{standard}{site}
+
+\modulesynopsis{A standard way to reference site-specific modules.}
+
 
 \strong{This module is automatically imported during initialization.}
 
index d67578ad11a26cfa54459f047431f5ed04a55572..699eb1054df3fe3d4727392bb19fd43596af0d57 100644 (file)
@@ -1,7 +1,9 @@
 % Documentation by ESR
 \section{Standard Module \module{smtplib}}
-\stmodindex{smtplib}
-\label{module-smtplib}
+\declaremodule{standard}{smtplib}
+
+\modulesynopsis{SMTP protocol client (requires sockets).}
+
 \indexii{SMTP}{protocol}
 \index{Simple Mail Transfer Protocol}
 
index 76d2b1a4bb1b200fc9f2ee8b46e0b2906f76cd42..4a1558e30f5eb8b296e4ab31cd7f0b0d9d56daba 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{socket}}
-\label{module-socket}
-\bimodindex{socket}
+\declaremodule{builtin}{socket}
+
+\modulesynopsis{Low-level networking interface.}
+
 
 This module provides access to the BSD \emph{socket} interface.
 It is available on \UNIX{} systems that support this interface.
index 8769c36bba9c1fadfafaf3ccdcd3387ebd9d7762..a07b0e300593c89b9b097766edbea49fdc635104 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{SocketServer}}
-\label{module-SocketServer}
-\stmodindex{SocketServer}
+\declaremodule{standard}{SocketServer}
+
+\modulesynopsis{A framework for network servers.}
+
 
 The \module{SocketServer} module simplifies the task of writing network
 servers.
index dcafd08505d5f2ac7f0ef9713babdbf5d08bb3bd..eea2321101f2a993df2150f630c9f2595da422bb 100644 (file)
@@ -7,37 +7,4 @@ The interfaces are generally modelled after the \UNIX{} or \C{}
 interfaces but they are available on some other systems as well
 (e.g. Windows or NT).  Here's an overview:
 
-\begin{description}
-
-\item[signal]
---- Set handlers for asynchronous events.
-
-\item[socket]
---- Low-level networking interface.
-
-\item[select]
---- Wait for I/O completion on multiple streams.
-
-\item[thread]
---- Create multiple threads of control within one namespace.
-
-\item[threading]
---- Higher level threading interface; use in preference of module
-\module{thread}.
-
-\item[Queue]
---- A stynchronized queue class.
-
-\item[anydbm]
---- Generic interface to DBM-style database modules.
-
-\item[whichdb]
---- Guess which DBM-style module created a given database.
-
-\item[zlib]
-\item[gzip]
---- Compression and decompression compatible with the
-\program{gzip} program (\module{zlib} is the low-level interface,
-\module{gzip} the high-level one).
-
-\end{description}
+\localmoduletable
index fdecbab1028796276e4a3c8a434e4653293462e1..83e8bc718cb3aece0ecc4d9df286a28d3467982c 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{soundex}}
-\label{module-soundex}
-\bimodindex{soundex}
+\declaremodule{builtin}{soundex}
+
+\modulesynopsis{None}
+
 
 
 The soundex algorithm takes an English word, and returns an
index 5e7633580a10e5939ea5a9b44d0ba4f468d55e82..925a1d76ff4e91da4c5c9b629d60568643958024 100644 (file)
@@ -1,8 +1,11 @@
 % By Skip Montanaro
 
 \section{Standard Module \module{stat}}
-\stmodindex{stat}
-\label{module-stat}
+\declaremodule{standard}{stat}
+
+\modulesynopsis{Constants and functions for interpreting the results of
+\function{os.stat()}, \function{os.lstat()} and \function{os.fstat()}.}
+
 
 The \code{stat} module defines constants and functions for interpreting the
 results of \code{os.stat()} and \code{os.lstat()} (if they exist).
index 146457a0170beb920d1ebf9be83357dc4af4fc25..64ccdd9f9d4ff09ac911129faa841aa7ab142672 100644 (file)
@@ -15,8 +15,10 @@ under X11, Win32 for Windows and Windows NT, and a collection of
 native toolkit interfaces for the Macintosh.
 
 \section{Built-in Module \module{stdwin}}
-\label{module-stdwin}
-\bimodindex{stdwin}
+\declaremodule{builtin}{stdwin}
+
+\modulesynopsis{None}
+
 
 This module defines several new object types and functions that
 provide access to the functionality of STDWIN.
@@ -776,8 +778,10 @@ main()
 \end{verbatim}
 %
 \section{Standard Module \module{stdwinevents}}
-\label{module-stdwinevents}
-\stmodindex{stdwinevents}
+\declaremodule{standard}{stdwinevents}
+
+\modulesynopsis{None}
+
 
 This module defines constants used by STDWIN for event types
 (\code{WE_ACTIVATE} etc.), command codes (\code{WC_LEFT} etc.)
@@ -791,8 +795,10 @@ Suggested usage is
 \end{verbatim}
 %
 \section{Standard Module \module{rect}}
-\label{module-rect}
-\stmodindex{rect}
+\declaremodule{standard}{rect}
+
+\modulesynopsis{None}
+
 
 This module contains useful operations on rectangles.
 A rectangle is defined as in module
index 7d6f4bdaae09e8679b8303ebb6c872f2a80905e0..226f453b91220c8fa8586f18df96354f8957a64c 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{string}}
-\label{module-string}
-\stmodindex{string}
+\declaremodule{standard}{string}
+
+\modulesynopsis{Common string operations.}
+
 
 This module defines some constants useful for checking character
 classes and some useful string functions.  See the module
index 7294002cde2350208ac6216b3f6a69adde6a7afa..4d7c0d1bb0a5e72cb0c8d00f6f74637c081dcf11 100644 (file)
@@ -4,27 +4,4 @@
 The modules described in this chapter provide a wide range of string
 manipulation operations.  Here's an overview:
 
-\begin{description}
-
-\item[string]
---- Common string operations.
-
-\item[re]
---- New Perl-style regular expression search and match operations.
-
-\item[regex]
---- Regular expression search and match operations.
-
-\item[regsub]
---- Substitution and splitting operations that use regular expressions.
-
-\item[struct]
---- Interpret strings as packed binary data.
-
-\item[StringIO]
---- Read and write strings as if they were files.
-
-\item[cStringIO]
---- Faster version of \module{StringIO}, but not subclassable.
-
-\end{description}
+\localmoduletable
index 86ebf46688ac77fb87da75430356bc07905628be..6b7d2c560551a15ef7760df3cae9fceff120bf76 100644 (file)
@@ -1,7 +1,9 @@
 \section{Standard Module \module{StringIO}}
-\label{module-StringIO}
+\declaremodule{standard}{StringIO}
+
+
+\modulesynopsis{Read and write strings as if they were files.}
 
-\stmodindex{StringIO}
 
 This module implements a file-like class, \class{StringIO},
 that reads and writes a string buffer (also known as \emph{memory
@@ -27,8 +29,10 @@ Free the memory buffer.
 
 
 \section{Built-in Module \module{cStringIO}}
-\bimodindex{cStringIO}
-\label{module-cStringIO}
+\declaremodule{builtin}{cStringIO}
+
+\modulesynopsis{Faster version of \module{StringIO}, but not subclassable.}
+
 
 % This section was written by Fred L. Drake, Jr. <fdrake@acm.org>
 
index 5925328e9c3393898c1d52910d438de9491b758b..22595cb41b80f57b66d72e8b62b62fedaf105212 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{struct}}
-\label{module-struct}
-\bimodindex{struct}
+\declaremodule{builtin}{struct}
+
+\modulesynopsis{Interpret strings as packed binary data.}
+
 \indexii{C@\C{}}{structures}
 
 This module performs conversions between Python values and C
index c43d6111fdd71550038c0228722324a0c8331890..920b048b97ea862989ad13da7d98ef0ace81a856 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{sunaudiodev}}
-\label{module-sunaudiodev}
-\bimodindex{sunaudiodev}
+\declaremodule{builtin}{sunaudiodev}
+
+\modulesynopsis{None}
+
 
 This module allows you to access the sun audio interface. The sun
 audio hardware is capable of recording and playing back audio data
index 0761405b29d3dec490438690034849578b713357..6dbc76eaf5d5b347f8223d2328de7da4f7217460 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{symbol}}
-\label{module-symbol}
-\stmodindex{symbol}
+\declaremodule{standard}{symbol}
+
+\modulesynopsis{Constants representing internal nodes of the parse tree.}
+
 
 This module provides constants which represent the numeric values of
 internal nodes of the parse tree.  Unlike most Python constants, these
index d7e8e468219d5ef17a56ff718282b9fcf948ada2..1f37bc8699022b028a44e73b76fdbf084c180835 100644 (file)
@@ -1,7 +1,8 @@
 \section{Built-in Module \module{sys}}
-\label{module-sys}
+\declaremodule{builtin}{sys}
+
+\modulesynopsis{Access system specific parameters and functions.}
 
-\bimodindex{sys}
 This module provides access to some variables used or maintained by the
 interpreter and to functions that interact strongly with the interpreter.
 It is always available.
@@ -13,7 +14,7 @@ It is always available.
   dependent whether this is a full pathname or not).
   If the command was executed using the \samp{-c} command line option
   to the interpreter, \code{argv[0]} is set to the string
-  \code{"-c"}.
+  \code{'-c'}.
   If no script name was passed to the Python interpreter,
   \code{argv} has zero length.
 \end{datadesc}
@@ -81,13 +82,13 @@ the other two are undefined.
 \begin{datadesc}{exec_prefix}
 A string giving the site-specific
 directory prefix where the platform-dependent Python files are
-installed; by default, this is also \code{"/usr/local"}.  This can be
+installed; by default, this is also \code{'/usr/local'}.  This can be
 set at build time with the \code{-}\code{-exec-prefix} argument to the
 \program{configure} script.  Specifically, all configuration files
 (e.g. the \file{config.h} header file) are installed in the directory
-\code{exec_prefix + "/lib/python\var{version}/config"}, and shared library
+\code{exec_prefix + '/lib/python\var{version}/config'}, and shared library
 modules are installed in
-\code{exec_prefix + "/lib/python\var{version}/lib-dynload"},
+\code{exec_prefix + '/lib/python\var{version}/lib-dynload'},
 where \var{version} is equal to \code{version[:3]}.
 \end{datadesc}
 
@@ -116,7 +117,7 @@ interpreter, on systems where this makes sense.
 \begin{funcdesc}{getrefcount}{object}
 Return the reference count of the \var{object}.  The count returned is
 generally one higher than you might expect, because it includes the
-(temporary) reference as an argument to \code{getrefcount()}.
+(temporary) reference as an argument to \function{getrefcount()}.
 \end{funcdesc}
 
 \begin{datadesc}{last_type}
@@ -157,7 +158,7 @@ complement binary arithmetic.
 \begin{datadesc}{path}
 \indexiii{module}{search}{path}
   A list of strings that specifies the search path for modules.
-  Initialized from the environment variable \code{\$PYTHONPATH}, or an
+  Initialized from the environment variable \envvar{PYTHONPATH}, or an
   installation-dependent default.  
 
 The first item of this list, \code{path[0]}, is the 
@@ -167,7 +168,7 @@ interpreter is invoked interactively or if the script is read from
 standard input), \code{path[0]} is the empty string, which directs 
 Python to search modules in the current directory first.  Notice that 
 the script directory is inserted \emph{before} the entries inserted as 
-a result of \code{\$PYTHONPATH}.  
+a result of \envvar{PYTHONPATH}.  
 \end{datadesc}
 
 \begin{datadesc}{platform}
@@ -179,12 +180,12 @@ components to \code{path}, for instance.
 \begin{datadesc}{prefix}
 A string giving the site-specific directory prefix where the platform
 independent Python files are installed; by default, this is the string
-\code{"/usr/local"}.  This can be set at build time with the
+\code{'/usr/local'}.  This can be set at build time with the
 \code{-}\code{-prefix} argument to the \program{configure} script.  The main
 collection of Python library modules is installed in the directory
-\code{prefix + "/lib/python\var{version}"} while the platform
+\code{prefix + '/lib/python\var{version}'} while the platform
 independent header files (all except \file{config.h}) are stored in
-\code{prefix + "/include/python\var{version}"},
+\code{prefix + '/include/python\var{version}'},
 where \var{version} is equal to \code{version[:3]}.
 
 \end{datadesc}
index 3e5b166a2711c8aec9406e957134831e93dff8a2..cd32bbfcfa626c640b8e1047af561378f4277762 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{syslog}}
-\label{module-syslog}
-\bimodindex{syslog}
+\declaremodule{builtin}{syslog}
+
+\modulesynopsis{An interface to the \UNIX{} syslog library routines.}
+
 
 This module provides an interface to the \UNIX{} \code{syslog} library
 routines.  Refer to the \UNIX{} manual pages for a detailed description
index 93577e760ff05e88aed6968fbb79896009754607..dadd3571cc012fbee99c16a00b024a275b5bab00 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{tempfile}}
-\label{module-tempfile}
-\stmodindex{tempfile}
+\declaremodule{standard}{tempfile}
+
+\modulesynopsis{Generate temporary file names.}
+
 \indexii{temporary}{file name}
 \indexii{temporary}{file}
 
index d190506a8e378c305e3ebdc0fc29840b6ae8a0f6..e82bb21d5733839c574fb09ad1a1111107c70310 100644 (file)
@@ -4,29 +4,27 @@
 
 % ==== 1. ====
 % Choose one of the following section headers and index entries;
-% \section generates the section header,
-% \bimodindex or \stmodindex generates an index entry for this
-% module.  Note that these should only be used for the defining entry
-% for the module.  Other references to the module should use
-% \refbimodindex, \refstmodindex, \refexmodindex or \refmodindex, as
-% appropriate.  (Just prepend "ref" to the csname of the \*modindex
-% macro used in the module definition.)
-%
-% The \label{module-spam} line is for the \seealso command.
+% \section generates the section header, \declmodule produces the
+% appropriate index entry for this module.  Note that these should
+% only be used for the defining entry for the module.  Other
+% references to the module should use \refbimodindex, \refstmodindex,
+% \refexmodindex or \refmodindex, as appropriate.
 
 \section{Built-in Module \module{spam}}        % If implemented in C, in
-\bimodindex{spam}                      % standard library
+\declaremodule{builtin}{spam}          % standard library
 
 \section{Standard Module \module{spam}}        % If implemented in Python, in
-\stmodindex{spam}                      % standard library
+\declaremodule{standard}{spam}         % standard library
 
 \section{Extension Module \module{spam}}% If implemented in C, but not 
-\exmodindex{spam}                      % in standard library
+\declaremodule{extension}{spam}                % in standard library
 
 \section{Module \module{spam}}         % If implemented in Python, but not 
-\modindex{spam}                                % in standard library
+\declaremodule{}{spam}                 % in standard library
+
+
+\modulesynopsis{This is a one-line descrition, for the chapter header.}
 
-\label{module-spam}
 
 % ==== 2. ====
 % Give a short overview of what the module does.
index 5e2ce1ef481ceeb080dbd1f35c3112877b9d6674..18b63bf4b81cd247e3a91abaa419619446145cad 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{termios}}
-\label{module-termios}
-\bimodindex{termios}
+\declaremodule{builtin}{termios}
+
+\modulesynopsis{\POSIX{} style tty control.}
+
 \indexii{\POSIX{}}{I/O control}
 \indexii{tty}{I/O control}
 
@@ -93,8 +95,10 @@ def getpass(prompt = "Password: "):
 \end{verbatim}
 
 \section{Standard Module \module{TERMIOS}}
-\label{module-TERMIOSuppercase}
-\stmodindex{TERMIOS}
+\declaremodule[TERMIOSuppercase]{standard}{TERMIOS}
+
+\modulesynopsis{The symbolic constants required to use the \module{termios} module.}
+
 \indexii{\POSIX{}}{I/O control}
 \indexii{tty}{I/O control}
 
index c8d251e06e189433837d0395e79e5f7a6b16d819..2e55b4173a72f6e99d0fa72df5a4c79215bd939c 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{thread}}
-\label{module-thread}
-\bimodindex{thread}
+\declaremodule{builtin}{thread}
+
+\modulesynopsis{Create multiple threads of control within one namespace.}
+
 
 This module provides low-level primitives for working with multiple
 threads (a.k.a.\ \dfn{light-weight processes} or \dfn{tasks}) --- multiple
index f8da0ed28c8348aa148b6340bf2fea063f1abdbf..6808ea9750608b1a085ac544a4f38592cec50fde 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{threading}}
-\label{module-threading}
-\stmodindex{threading}
+\declaremodule{standard}{threading}
+
+\modulesynopsis{None}
+
 
 This module constructs higher-level threading interfaces on top of the
 lower level
index 711347b30b879b5b2de08de645ef5f7f18c556d7..caafd501d3f8df806dc142a41570e0d4e499eb37 100644 (file)
@@ -1,6 +1,8 @@
 \section{Built-in Module \module{time}}
-\label{module-time}
-\bimodindex{time}
+\declaremodule{builtin}{time}
+
+\modulesynopsis{Time access and conversions.}
+
 
 This module provides various time-related functions.
 It is always available.
index 15ab2a4b20f42728600f30602d3b8f20c297aad9..ce3bd5c70d76d997ecd109ae32d20bc7eb96672d 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{token}}
-\label{module-token}
-\stmodindex{token}
+\declaremodule{standard}{token}
+
+\modulesynopsis{Constants representing terminal nodes of the parse tree.}
+
 
 This module provides constants which represent the numeric values of
 leaf nodes of the parse tree (terminal tokens).  Refer to the file
index 366421a441e405aabedd03851097da7671c1fc00..29c8ac667f1edf9e8682f6a64286367200714ca3 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{traceback}}
-\label{module-traceback}
-\stmodindex{traceback}
+\declaremodule{standard}{traceback}
+
+\modulesynopsis{Print or retrieve a stack traceback.}
+
 
 
 This module provides a standard interface to extract, format and print
index a9bba64a7f062d78bf58527fa1ad46c8e87d9b0f..07bf35a9186439f3726b31620254817c5fefb43d 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{types}}
-\label{module-types}
-\stmodindex{types}
+\declaremodule{standard}{types}
+
+\modulesynopsis{Names for all built-in types.}
+
 
 
 This module defines names for all object types that are used by the
index c836515f38c764c55fe51fd5fe9ac8ad15aeac8c..686df01370f067c3e327212012c6d4db2217a17f 100644 (file)
@@ -5,54 +5,4 @@ The modules described in this chapter provide interfaces to features
 that are unique to the \UNIX{} operating system, or in some cases to
 some or many variants of it.  Here's an overview:
 
-\begin{description}
-
-\item[posix]
---- The most common \POSIX{} system calls (normally used via module
-\module{os}).
-
-\item[posixpath]
---- Common \POSIX{} pathname manipulations (normally used via \code{os.path}).
-
-\item[pwd]
---- The password database (\function{getpwnam()} and friends).
-
-\item[grp]
---- The group database (\function{getgrnam()} and friends).
-
-\item[crypt]
---- The \cfunction{crypt()} function used to check \UNIX{} passwords.
-
-\item[dbm]
---- The standard ``database'' interface, based on \code{ndbm}.
-
-\item[gdbm]
---- GNU's reinterpretation of dbm.
-
-\item[termios]
---- \POSIX{} style tty control.
-
-\item[TERMIOS]
---- The symbolic constants required to use the \module{termios} module.
-
-\item[fcntl]
---- The \function{fcntl()} and \function{ioctl()} system calls.
-
-\item[posixfile]
---- A file-like object with support for locking.
-
-\item[resource]
---- An interface to provide resource usage information on the current
-process.
-
-\item[syslog]
---- An interface to the \UNIX{} \code{syslog} library routines.
-
-\item[stat]
---- Constants and functions for interpreting the results of
-\function{os.stat()}, \function{os.lstat()} and \function{os.fstat()}.
-
-\item[commands]
---- Wrapper functions for \function{os.popen()}.
-
-\end{description}
+\localmoduletable
index c53508b8d618762668e2fa75cd3ce04b91050c1c..7a985822eb38efc80eaffc7373fef82f51e4fe60 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{urllib}}
-\label{module-urllib}
-\stmodindex{urllib}
+\declaremodule{standard}{urllib}
+
+\modulesynopsis{Open an arbitrary object given by URL (requires sockets).}
+
 \index{WWW}
 \index{World-Wide Web}
 \index{URL}
index 3d98688b090385eecb84d981aa74bfd402f410fb..4c3af7dc393c5b7a67c9b4d5626c581c516da67b 100644 (file)
@@ -1,6 +1,9 @@
 \section{Standard Module \module{urlparse}}
-\label{module-urlparse}
-\stmodindex{urlparse}
+\declaremodule{standard}{urlparse}
+
+\modulesynopsis{Parse a URL string into a tuple (addressing scheme identifier, network
+location, path, parameters, query string, fragment identifier).}
+
 \index{WWW}
 \index{World-Wide Web}
 \index{URL}
index e545972b83fb06ccbabb12864bd1d39b1959ac03..552722520c7679801ec6f8a8ceb1aa1f4d8f97fd 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{user}}
-\label{module-user}
-\stmodindex{user}
+\declaremodule{standard}{user}
+
+\modulesynopsis{A standard way to reference user-specific modules.}
+
 \indexii{.pythonrc.py}{file}
 \indexiii{user}{configuration}{file}
 
index 3bde7162672737eb932a1839eb3d59f9a1755c58..6c29906fc34c5347880f906e262d2fcf6fb22c1c 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{UserDict}}
-\stmodindex{UserDict}
-\label{module-UserDict}
+\declaremodule{standard}{UserDict}
+
+\modulesynopsis{Class wrapper for dictionary objects.}
+
 
 This module defines a class that acts as a wrapper around
 dictionary objects.  It is a useful base class for
@@ -23,8 +25,10 @@ class.
 
 
 \section{Standard Module \module{UserList}}
-\stmodindex{UserList}
-\label{module-UserList}
+\declaremodule{standard}{UserList}
+
+\modulesynopsis{Class wrapper for list objects.}
+
 
 This module defines a class that acts as a wrapper around
 list objects.  It is a useful base class for
index 5c9e06c6ba1052dce17ab15d1b715d60f7fd8583..b052de747799823d365b862b309b2f9bbe6ff591 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{uu}}
-\label{module-uu}
-\stmodindex{uu}
+\declaremodule{standard}{uu}
+
+\modulesynopsis{Encode and decode files in uuencode format.}
+
 
 This module encodes and decodes files in uuencode format, allowing
 arbitrary binary data to be transferred over ascii-only connections.
index 2caace28c1c3cce6bcd01b1d0af732d229f18f4b..db4f5556a4794d62516f7d4857475a2ba5b7b15c 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{whichdb}}
-\label{module-whichdb}
-\stmodindex{whichdb}
+\declaremodule{standard}{whichdb}
+
+\modulesynopsis{Guess which DBM-style module created a given database.}
+
 
 The single function in this module attempts to guess which of the
 several simple database modules available--dbm, gdbm, or
index 0645b6f7c1221af05ddaa0f3025a3522d987e17e..bc7d402e03c97a343ed9a69bb4babcf0a766fd47 100644 (file)
@@ -1,6 +1,8 @@
 \section{Standard Module \module{whrandom}}
-\label{module-whrandom}
-\stmodindex{whrandom}
+\declaremodule{standard}{whrandom}
+
+\modulesynopsis{Floating point pseudo-random number generator.}
+
 
 This module implements a Wichmann-Hill pseudo-random number generator
 class that is also named \code{whrandom}.  Instances of the
index 143b15dae3842f5d9258a3149ab6da7c4b24fbcc..9d647ffcb92811141eca2f7af9beacc5d803d0dd 100644 (file)
@@ -12,97 +12,4 @@ of these modules require the presence of the system-dependent module
 \code{sockets}\refbimodindex{socket}, which is currently only fully
 supported on \UNIX{} and Windows NT.  Here is an overview:
 
-\begin{description}
-
-\item[cgi]
---- Common Gateway Interface, used to interpret forms in server-side
-scripts.
-
-\item[urllib]
---- Open an arbitrary object given by URL (requires sockets).
-
-\item[httplib]
---- HTTP protocol client (requires sockets).
-
-\item[ftplib]
---- FTP protocol client (requires sockets).
-
-\item[gopherlib]
---- Gopher protocol client (requires sockets).
-
-\item[poplib]
---- POP3 protocol client (requires sockets).
-
-\item[imaplib]
---- IMAP4 protocol client (requires sockets).
-
-\item[nntplib]
---- NNTP protocol client (requires sockets).
-
-\item[smtplib]
---- SMTP protocol client (requires sockets).
-
-\item[urlparse]
---- Parse a URL string into a tuple (addressing scheme identifier, network
-location, path, parameters, query string, fragment identifier).
-
-\item[sgmllib]
---- Only as much of an SGML parser as needed to parse HTML.
-
-\item[htmllib]
---- A parser for HTML documents.
-
-\item[xmllib]
---- A parser for XML documents.
-
-\item[formatter]
---- Generic output formatter and device interface.
-
-\item[rfc822]
---- Parse \rfc{822} style mail headers.
-
-\item[mimetools]
---- Tools for parsing MIME style message bodies.
-
-\item[multifile]
---- Make each part of a MIME multipart message ``feel'' like a regular file.
-
-\item[binhex]
---- Encode and decode files in binhex4 format.
-
-\item[uu]
---- Encode and decode files in uuencode format.
-
-\item[binascii]
---- Tools for converting between binary and various ascii-encoded binary 
-representation
-
-\item[xdrlib]
---- The External Data Representation Standard as described in \rfc{1014},
-written by Sun Microsystems, Inc. June 1987.
-
-\item[mailcap]
---- Mailcap file handling.  See \rfc{1524}.
-
-\item[mimetypes]
---- Mapping of filename extensions to MIME types.
-
-\item[base64]
---- Encode/decode binary files using the MIME base64 encoding.
-
-\item[quopri]
---- Encode/decode binary files using the MIME quoted-printable encoding.
-
-\item[SocketServer]
---- A framework for network servers.
-
-\item[mailbox]
---- Read various mailbox formats.
-
-\item[mimify]
---- Mimification and unmimification of mail messages.
-
-\item[BaseHTTPServer]
---- Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
-
-\end{description}
+\localmoduletable
index 56459f8364c2e78c29e30cd785f7bf0ef418d351..47524c6292a6a84d7fb51883b715502e742d4e9c 100644 (file)
@@ -1,11 +1,13 @@
 \section{Standard Module \module{xdrlib}}
-\label{module-xdrlib}
-\stmodindex{xdrlib}
+\declaremodule{standard}{xdrlib}
+
+\modulesynopsis{The External Data Representation Standard as described
+in \rfc{1014}, written by Sun Microsystems, Inc. June 1987.}
+
 \index{XDR}
 \index{External Data Representation}
 
 
-
 The \module{xdrlib} module supports the External Data Representation
 Standard as described in \rfc{1014}, written by Sun Microsystems,
 Inc. June 1987.  It supports most of the data types described in the
index 4306aca2bd96470cb8078bd5bb712a3d21a6568e..129ab1721b99f899e555f943779ebb315744413d 100644 (file)
@@ -1,7 +1,9 @@
 \section{Standard Module \module{xmllib}}
 % Author: Sjoerd Mullender
-\label{module-xmllib}
-\stmodindex{xmllib}
+\declaremodule{standard}{xmllib}
+
+\modulesynopsis{A parser for XML documents.}
+
 \index{XML}
 
 This module defines a class \class{XMLParser} which serves as the basis 
index 3838c8665feb1a5bcd300dfeb7b81d7942d99d56..718a3d4511ff9e3032b2dd483d3e8b70d4e1957b 100644 (file)
@@ -2,8 +2,10 @@
 % hasn't been updated yet
 
 \section{Built-in Module \module{zlib}}
-\label{module-zlib}
-\bimodindex{zlib}
+\declaremodule{builtin}{zlib}
+
+\modulesynopsis{None}
+
 
 For applications that require data compression, the functions in this
 module allow compression and decompression, using the zlib library.
index d190506a8e378c305e3ebdc0fc29840b6ae8a0f6..e82bb21d5733839c574fb09ad1a1111107c70310 100644 (file)
@@ -4,29 +4,27 @@
 
 % ==== 1. ====
 % Choose one of the following section headers and index entries;
-% \section generates the section header,
-% \bimodindex or \stmodindex generates an index entry for this
-% module.  Note that these should only be used for the defining entry
-% for the module.  Other references to the module should use
-% \refbimodindex, \refstmodindex, \refexmodindex or \refmodindex, as
-% appropriate.  (Just prepend "ref" to the csname of the \*modindex
-% macro used in the module definition.)
-%
-% The \label{module-spam} line is for the \seealso command.
+% \section generates the section header, \declmodule produces the
+% appropriate index entry for this module.  Note that these should
+% only be used for the defining entry for the module.  Other
+% references to the module should use \refbimodindex, \refstmodindex,
+% \refexmodindex or \refmodindex, as appropriate.
 
 \section{Built-in Module \module{spam}}        % If implemented in C, in
-\bimodindex{spam}                      % standard library
+\declaremodule{builtin}{spam}          % standard library
 
 \section{Standard Module \module{spam}}        % If implemented in Python, in
-\stmodindex{spam}                      % standard library
+\declaremodule{standard}{spam}         % standard library
 
 \section{Extension Module \module{spam}}% If implemented in C, but not 
-\exmodindex{spam}                      % in standard library
+\declaremodule{extension}{spam}                % in standard library
 
 \section{Module \module{spam}}         % If implemented in Python, but not 
-\modindex{spam}                                % in standard library
+\declaremodule{}{spam}                 % in standard library
+
+
+\modulesynopsis{This is a one-line descrition, for the chapter header.}
 
-\label{module-spam}
 
 % ==== 2. ====
 % Give a short overview of what the module does.