The module \code{amoeba} defines the following items:
-\setindexsubitem{(in module amoeba)}
\begin{funcdesc}{name_append}{path, cap}
Stores a capability in the Amoeba directory tree.
Arguments are the pathname (a string) and the capability (a capability
\label{module-cmath}
\bimodindex{cmath}
-\setindexsubitem{(in module cmath)}
This module is always available.
It provides access to mathematical functions for complex numbers.
The functions are:
The \code{code} module defines the following functions:
-\setindexsubitem{(in module code)}
\begin{funcdesc}{compile_command}{source, \optional{filename\optional{, symbol}}}
This function is useful for programs that want to emulate Python's
constructors which are not classes. Such constructors may be factory
functions or class instances.
-\setindexsubitem{(in module copy_reg)}
\begin{funcdesc}{constructor}{object}
Declares \var{object} to be a valid constructor.
The module defines the following constant and functions:
-\setindexsubitem{(in module dbm)}
\begin{excdesc}{error}
Raised on dbm-specific errors, such as I/O errors. \code{KeyError} is
raised for general mapping errors like specifying an incorrect key.
for pathname expansion (\module{glob} uses \function{fnmatch()} to
match filename segments).
-\setindexsubitem{(in module fnmatch)}
\begin{funcdesc}{fnmatch}{filename, pattern}
Test whether the \var{filename} string matches the \var{pattern}
The module defines the following constant and functions:
-\setindexsubitem{(in module gdbm)}
\begin{excdesc}{error}
Raised on \code{gdbm}-specific errors, such as I/O errors. \code{KeyError} is
raised for general mapping errors like specifying an incorrect key.
The following functions are non-standard or have special argument
conventions:
-\setindexsubitem{(in module gl)}
\begin{funcdesc}{varray}{argument}
%JHXXX the argument-argument added
Equivalent to but faster than a number of
\stmodindex{gopherlib}
\indexii{Gopher}{protocol}
-\setindexsubitem{(in module gopherlib)}
This module provides a minimal implementation of client side of the
the Gopher protocol. It is used by the module \code{urllib} to handle
It defines the following items:
-\setindexsubitem{(in module grp)}
\begin{funcdesc}{getgrgid}{gid}
Return the group database entry for the given numeric group ID.
\end{funcdesc}
\label{module-math}
\bimodindex{math}
-\setindexsubitem{(in module math)}
This module is always available.
It provides access to the mathematical functions defined by the \C{}
standard.
\section{Standard Module \sectcode{mimify}}
\label{module-mimify}
\stmodindex{mimify}
-\setindexsubitem{(in module mimify)}
The mimify module defines two functions to convert mail messages to
and from MIME format. The mail message can be either a simple message
The module is too large to document here in its entirety.
One interesting function:
-\setindexsubitem{(in module panel)}
\begin{funcdesc}{defpanellist}{filename}
Parses a panel description file containing S-expressions written by the
\emph{Panel Editor}
\stmodindex{pdb}
\index{debugging}
-\setindexsubitem{(in module pdb)}
The module \code{pdb} defines an interactive source code debugger for
Python programs. It supports setting
It defines the following functions and constants:
-\setindexsubitem{(in module posix)}
\begin{funcdesc}{chdir}{path}
Change the current working directory to \var{path}.
\end{funcdesc}
It defines the following items:
-\setindexsubitem{(in module pwd)}
\begin{funcdesc}{getpwuid}{uid}
Return the password database entry for the given numeric user ID.
\end{funcdesc}
compatibility, the \code{rand} module is now considered obsolete; if
possible, use the \code{whrandom} module instead.
-\setindexsubitem{(in module rand)}
\begin{funcdesc}{choice}{seq}
Returns a random element from the sequence \var{seq}.
used in common mathematical practice; most of these equations can be
found in any statistics text.
-\setindexsubitem{(in module random)}
\begin{funcdesc}{betavariate}{alpha, beta}
Beta distribution. Conditions on the parameters are
\code{\var{alpha} >- 1} and \code{\var{beta} > -1}.
The module defines these functions, and an exception:
-\setindexsubitem{(in module regex)}
\begin{funcdesc}{match}{pattern, string}
Return how many characters at the beginning of \var{string} match
conversion help, see the URL
\url{http://starship.skyport.net/crew/amk/howto/regex-to-re.html}.)
-\setindexsubitem{(in module regsub)}
\begin{funcdesc}{sub}{pat, repl, str}
Replace the first occurrence of pattern \var{pat} in string
A single exception is defined for errors:
-\setindexsubitem{(in module resource)}
\begin{excdesc}{error}
The functions described below may raise this error if the underlying
The \code{stat} module defines the following functions:
-\setindexsubitem{(in module stat)}
\begin{funcdesc}{S_ISDIR}{mode}
Return non-zero if the mode was gotten from a directory.
The following functions are defined in the \code{stdwin} module:
-\setindexsubitem{(in module stdwin)}
\begin{funcdesc}{open}{title}
Open a new window whose initial title is given by the string argument.
Return a window object; window object methods are described below.%
The module defines the following objects:
-\setindexsubitem{(in module rect)}
\begin{excdesc}{error}
The exception raised by functions in this module when they detect an
error.
The functions defined in this module are:
-\setindexsubitem{(in module string)}
\begin{funcdesc}{atof}{s}
Convert a string to a floating point number. The string must have
This module also provides one additional data object:
-\setindexsubitem{(in module symbol)}
\begin{datadesc}{sym_name}
The module defines the following functions:
-\setindexsubitem{(in module syslog)}
\begin{funcdesc}{syslog}{\optional{priority,} message}
Send the string \var{message} to the system logger.
\indexii{\POSIX{}}{I/O control}
\indexii{tty}{I/O control}
-\setindexsubitem{(in module TERMIOS)}
This module defines the symbolic constants required to use the
\module{termios}\refbimodindex{termios} module (see the previous
This module also provides one data object and some functions. The
functions mirror definitions in the Python C header files.
-\setindexsubitem{(in module token)}
\begin{datadesc}{tok_name}
\indexii{URL}{parsing}
\indexii{relative}{URL}
-\setindexsubitem{(in module urlparse)}
This module defines a standard interface to break URL strings up in
components (addessing scheme, network location, path etc.), to combine
several simple database modules available--dbm, gdbm, or
dbhash--should be used to open a given file.
-\setindexsubitem{(in module whichdb)}
\begin{funcdesc}{whichdb}{filename}
Returns one of the following values: \code{None} if the file can't be
opened because it's unreadable or doesn't exist; the empty string
This module implements a Wichmann-Hill pseudo-random number generator
class that is also named \code{whrandom}. Instances of the
\code{whrandom} class have the following methods:
-\setindexsubitem{(in module whrandom)}
\begin{funcdesc}{choice}{seq}
Chooses a random element from the non-empty sequence \var{seq} and returns it.
\index{XDR}
\index{External Data Representation}
-\setindexsubitem{(in module xdrlib)}
The \module{xdrlib} module supports the External Data Representation
The module \code{amoeba} defines the following items:
-\setindexsubitem{(in module amoeba)}
\begin{funcdesc}{name_append}{path, cap}
Stores a capability in the Amoeba directory tree.
Arguments are the pathname (a string) and the capability (a capability
\label{module-cmath}
\bimodindex{cmath}
-\setindexsubitem{(in module cmath)}
This module is always available.
It provides access to mathematical functions for complex numbers.
The functions are:
The \code{code} module defines the following functions:
-\setindexsubitem{(in module code)}
\begin{funcdesc}{compile_command}{source, \optional{filename\optional{, symbol}}}
This function is useful for programs that want to emulate Python's
constructors which are not classes. Such constructors may be factory
functions or class instances.
-\setindexsubitem{(in module copy_reg)}
\begin{funcdesc}{constructor}{object}
Declares \var{object} to be a valid constructor.
The module defines the following constant and functions:
-\setindexsubitem{(in module dbm)}
\begin{excdesc}{error}
Raised on dbm-specific errors, such as I/O errors. \code{KeyError} is
raised for general mapping errors like specifying an incorrect key.
for pathname expansion (\module{glob} uses \function{fnmatch()} to
match filename segments).
-\setindexsubitem{(in module fnmatch)}
\begin{funcdesc}{fnmatch}{filename, pattern}
Test whether the \var{filename} string matches the \var{pattern}
The module defines the following constant and functions:
-\setindexsubitem{(in module gdbm)}
\begin{excdesc}{error}
Raised on \code{gdbm}-specific errors, such as I/O errors. \code{KeyError} is
raised for general mapping errors like specifying an incorrect key.
The following functions are non-standard or have special argument
conventions:
-\setindexsubitem{(in module gl)}
\begin{funcdesc}{varray}{argument}
%JHXXX the argument-argument added
Equivalent to but faster than a number of
\stmodindex{gopherlib}
\indexii{Gopher}{protocol}
-\setindexsubitem{(in module gopherlib)}
This module provides a minimal implementation of client side of the
the Gopher protocol. It is used by the module \code{urllib} to handle
It defines the following items:
-\setindexsubitem{(in module grp)}
\begin{funcdesc}{getgrgid}{gid}
Return the group database entry for the given numeric group ID.
\end{funcdesc}
\label{module-math}
\bimodindex{math}
-\setindexsubitem{(in module math)}
This module is always available.
It provides access to the mathematical functions defined by the \C{}
standard.
\section{Standard Module \sectcode{mimify}}
\label{module-mimify}
\stmodindex{mimify}
-\setindexsubitem{(in module mimify)}
The mimify module defines two functions to convert mail messages to
and from MIME format. The mail message can be either a simple message
The module is too large to document here in its entirety.
One interesting function:
-\setindexsubitem{(in module panel)}
\begin{funcdesc}{defpanellist}{filename}
Parses a panel description file containing S-expressions written by the
\emph{Panel Editor}
\stmodindex{pdb}
\index{debugging}
-\setindexsubitem{(in module pdb)}
The module \code{pdb} defines an interactive source code debugger for
Python programs. It supports setting
It defines the following functions and constants:
-\setindexsubitem{(in module posix)}
\begin{funcdesc}{chdir}{path}
Change the current working directory to \var{path}.
\end{funcdesc}
It defines the following items:
-\setindexsubitem{(in module pwd)}
\begin{funcdesc}{getpwuid}{uid}
Return the password database entry for the given numeric user ID.
\end{funcdesc}
compatibility, the \code{rand} module is now considered obsolete; if
possible, use the \code{whrandom} module instead.
-\setindexsubitem{(in module rand)}
\begin{funcdesc}{choice}{seq}
Returns a random element from the sequence \var{seq}.
used in common mathematical practice; most of these equations can be
found in any statistics text.
-\setindexsubitem{(in module random)}
\begin{funcdesc}{betavariate}{alpha, beta}
Beta distribution. Conditions on the parameters are
\code{\var{alpha} >- 1} and \code{\var{beta} > -1}.
The module defines these functions, and an exception:
-\setindexsubitem{(in module regex)}
\begin{funcdesc}{match}{pattern, string}
Return how many characters at the beginning of \var{string} match
conversion help, see the URL
\url{http://starship.skyport.net/crew/amk/howto/regex-to-re.html}.)
-\setindexsubitem{(in module regsub)}
\begin{funcdesc}{sub}{pat, repl, str}
Replace the first occurrence of pattern \var{pat} in string
A single exception is defined for errors:
-\setindexsubitem{(in module resource)}
\begin{excdesc}{error}
The functions described below may raise this error if the underlying
The \code{stat} module defines the following functions:
-\setindexsubitem{(in module stat)}
\begin{funcdesc}{S_ISDIR}{mode}
Return non-zero if the mode was gotten from a directory.
The following functions are defined in the \code{stdwin} module:
-\setindexsubitem{(in module stdwin)}
\begin{funcdesc}{open}{title}
Open a new window whose initial title is given by the string argument.
Return a window object; window object methods are described below.%
The module defines the following objects:
-\setindexsubitem{(in module rect)}
\begin{excdesc}{error}
The exception raised by functions in this module when they detect an
error.
The functions defined in this module are:
-\setindexsubitem{(in module string)}
\begin{funcdesc}{atof}{s}
Convert a string to a floating point number. The string must have
This module also provides one additional data object:
-\setindexsubitem{(in module symbol)}
\begin{datadesc}{sym_name}
The module defines the following functions:
-\setindexsubitem{(in module syslog)}
\begin{funcdesc}{syslog}{\optional{priority,} message}
Send the string \var{message} to the system logger.
\indexii{\POSIX{}}{I/O control}
\indexii{tty}{I/O control}
-\setindexsubitem{(in module TERMIOS)}
This module defines the symbolic constants required to use the
\module{termios}\refbimodindex{termios} module (see the previous
This module also provides one data object and some functions. The
functions mirror definitions in the Python C header files.
-\setindexsubitem{(in module token)}
\begin{datadesc}{tok_name}
\indexii{URL}{parsing}
\indexii{relative}{URL}
-\setindexsubitem{(in module urlparse)}
This module defines a standard interface to break URL strings up in
components (addessing scheme, network location, path etc.), to combine
several simple database modules available--dbm, gdbm, or
dbhash--should be used to open a given file.
-\setindexsubitem{(in module whichdb)}
\begin{funcdesc}{whichdb}{filename}
Returns one of the following values: \code{None} if the file can't be
opened because it's unreadable or doesn't exist; the empty string
This module implements a Wichmann-Hill pseudo-random number generator
class that is also named \code{whrandom}. Instances of the
\code{whrandom} class have the following methods:
-\setindexsubitem{(in module whrandom)}
\begin{funcdesc}{choice}{seq}
Chooses a random element from the non-empty sequence \var{seq} and returns it.
\index{XDR}
\index{External Data Representation}
-\setindexsubitem{(in module xdrlib)}
The \module{xdrlib} module supports the External Data Representation