mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Shorten a few section titles.
This commit is contained in:
parent
da57365337
commit
bbac43223c
15 changed files with 73 additions and 67 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{anydbm} ---
|
\section{\module{anydbm} ---
|
||||||
Generic interface to DBM-style database modules.}
|
Generic access to DBM-style databases}
|
||||||
\declaremodule{standard}{anydbm}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{anydbm}
|
||||||
\modulesynopsis{Generic interface to DBM-style database modules.}
|
\modulesynopsis{Generic interface to DBM-style database modules.}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -48,9 +48,9 @@ strings.
|
||||||
|
|
||||||
|
|
||||||
\section{\module{dumbdbm} ---
|
\section{\module{dumbdbm} ---
|
||||||
Portable implementation of the simple DBM interface.}
|
Portable DBM implementation}
|
||||||
\declaremodule{standard}{dumbdbm}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{dumbdbm}
|
||||||
\modulesynopsis{Portable implementation of the simple DBM interface.}
|
\modulesynopsis{Portable implementation of the simple DBM interface.}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{binhex} ---
|
\section{\module{binhex} ---
|
||||||
Encode and decode files in binhex4 format.}
|
Encode and decode binhex4 files}
|
||||||
\declaremodule{standard}{binhex}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{binhex}
|
||||||
\modulesynopsis{Encode and decode files in binhex4 format.}
|
\modulesynopsis{Encode and decode files in binhex4 format.}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -27,7 +27,8 @@ argument is empty in which case the output filename is read from the
|
||||||
binhex file.
|
binhex file.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\subsection{Notes}
|
\subsection{Notes \label{binhex-notes}}
|
||||||
|
|
||||||
There is an alternative, more powerful interface to the coder and
|
There is an alternative, more powerful interface to the coder and
|
||||||
decoder, see the source for details.
|
decoder, see the source for details.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,12 @@
|
||||||
% <arw@pythonpros.com>.
|
% <arw@pythonpros.com>.
|
||||||
|
|
||||||
\section{\module{bisect} ---
|
\section{\module{bisect} ---
|
||||||
Array bisection algorithms for binary searching.}
|
Array bisection algorithm}
|
||||||
|
|
||||||
\declaremodule{standard}{bisect}
|
\declaremodule{standard}{bisect}
|
||||||
|
|
||||||
\modulesynopsis{Array bisection algorithms for binary searching.}
|
\modulesynopsis{Array bisection algorithms for binary searching.}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This module provides support for maintaining a list in sorted order
|
This module provides support for maintaining a list in sorted order
|
||||||
without having to sort the list after each insertion. For long lists
|
without having to sort the list after each insertion. For long lists
|
||||||
of items with expensive comparison operations, this can be an
|
of items with expensive comparison operations, this can be an
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,25 @@
|
||||||
\section{\module{dbm} ---
|
\section{\module{dbm} ---
|
||||||
The standard ``database'' interface, based on ndbm.}
|
Simple ``database'' interface}
|
||||||
\declaremodule{builtin}{dbm}
|
|
||||||
|
|
||||||
|
\declaremodule{builtin}{dbm}
|
||||||
\modulesynopsis{The standard ``database'' interface, based on ndbm.}
|
\modulesynopsis{The standard ``database'' interface, based on ndbm.}
|
||||||
|
|
||||||
|
|
||||||
The \code{dbm} module provides an interface to the \UNIX{}
|
The \module{dbm} module provides an interface to the \UNIX{}
|
||||||
\code{(n)dbm} library. Dbm objects behave like mappings
|
\code{(n)dbm} library. Dbm objects behave like mappings
|
||||||
(dictionaries), except that keys and values are always strings.
|
(dictionaries), except that keys and values are always strings.
|
||||||
Printing a dbm object doesn't print the keys and values, and the
|
Printing a dbm object doesn't print the keys and values, and the
|
||||||
\code{items()} and \code{values()} methods are not supported.
|
\code{items()} and \code{values()} methods are not supported.
|
||||||
|
|
||||||
See also the \code{gdbm} module, which provides a similar interface
|
See also the \refmodule{gdbm}\refbimodindex{gdbm} module, which
|
||||||
using the GNU GDBM library.
|
provides a similar interface using the GNU GDBM library.
|
||||||
\refbimodindex{gdbm}
|
|
||||||
|
|
||||||
The module defines the following constant and functions:
|
The module defines the following constant and functions:
|
||||||
|
|
||||||
\begin{excdesc}{error}
|
\begin{excdesc}{error}
|
||||||
Raised on dbm-specific errors, such as I/O errors. \code{KeyError} is
|
Raised on dbm-specific errors, such as I/O errors.
|
||||||
raised for general mapping errors like specifying an incorrect key.
|
\exception{KeyError} is raised for general mapping errors like
|
||||||
|
specifying an incorrect key.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{open}{filename, \optional{flag, \optional{mode}}}
|
\begin{funcdesc}{open}{filename, \optional{flag, \optional{mode}}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{gdbm} ---
|
\section{\module{gdbm} ---
|
||||||
GNU's reinterpretation of dbm.}
|
GNU's reinterpretation of dbm}
|
||||||
\declaremodule{builtin}{gdbm}
|
|
||||||
|
|
||||||
|
\declaremodule{builtin}{gdbm}
|
||||||
\modulesynopsis{GNU's reinterpretation of dbm.}
|
\modulesynopsis{GNU's reinterpretation of dbm.}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -19,22 +19,23 @@
|
||||||
% this; it's just a little annoying. The warning can be ignored, but
|
% this; it's just a little annoying. The warning can be ignored, but
|
||||||
% the index produced uses the non-bold version.
|
% the index produced uses the non-bold version.
|
||||||
|
|
||||||
This module is quite similar to the \code{dbm} module, but uses \code{gdbm}
|
This module is quite similar to the \module{dbm}\refbimodindex{dbm}
|
||||||
instead to provide some additional functionality. Please note that
|
module, but uses \code{gdbm} instead to provide some additional
|
||||||
the file formats created by \code{gdbm} and \code{dbm} are incompatible.
|
functionality. Please note that the file formats created by
|
||||||
\refbimodindex{dbm}
|
\code{gdbm} and \code{dbm} are incompatible.
|
||||||
|
|
||||||
The \code{gdbm} module provides an interface to the GNU DBM
|
The \module{gdbm} module provides an interface to the GNU DBM
|
||||||
library. \code{gdbm} objects behave like mappings
|
library. \code{gdbm} objects behave like mappings
|
||||||
(dictionaries), except that keys and values are always strings.
|
(dictionaries), except that keys and values are always strings.
|
||||||
Printing a \code{gdbm} object doesn't print the keys and values, and the
|
Printing a \code{gdbm} object doesn't print the keys and values, and
|
||||||
\code{items()} and \code{values()} methods are not supported.
|
the \method{items()} and \method{values()} methods are not supported.
|
||||||
|
|
||||||
The module defines the following constant and functions:
|
The module defines the following constant and functions:
|
||||||
|
|
||||||
\begin{excdesc}{error}
|
\begin{excdesc}{error}
|
||||||
Raised on \code{gdbm}-specific errors, such as I/O errors. \code{KeyError} is
|
Raised on \code{gdbm}-specific errors, such as I/O errors.
|
||||||
raised for general mapping errors like specifying an incorrect key.
|
\exception{KeyError} is raised for general mapping errors like
|
||||||
|
specifying an incorrect key.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{open}{filename, \optional{flag, \optional{mode}}}
|
\begin{funcdesc}{open}{filename, \optional{flag, \optional{mode}}}
|
||||||
|
|
@ -47,11 +48,11 @@ The optional \var{flag} argument can be
|
||||||
\code{'c'} (which creates the database if it doesn't exist), or
|
\code{'c'} (which creates the database if it doesn't exist), or
|
||||||
\code{'n'} (which always creates a new empty database).
|
\code{'n'} (which always creates a new empty database).
|
||||||
|
|
||||||
Appending \code{f} to the flag opens the database in fast mode;
|
Appending \character{f} to the flag opens the database in fast mode;
|
||||||
altered data will not automatically be written to the disk after every
|
altered data will not automatically be written to the disk after every
|
||||||
change. This results in faster writes to the database, but may result
|
change. This results in faster writes to the database, but may result
|
||||||
in an inconsistent database if the program crashes while the database
|
in an inconsistent database if the program crashes while the database
|
||||||
is still open. Use the \code{sync()} method to force any unwritten
|
is still open. Use the \method{sync()} method to force any unwritten
|
||||||
data to be written to the disk.
|
data to be written to the disk.
|
||||||
|
|
||||||
The optional \var{mode} argument is the \UNIX{} mode of the file, used
|
The optional \var{mode} argument is the \UNIX{} mode of the file, used
|
||||||
|
|
@ -64,29 +65,30 @@ following methods:
|
||||||
|
|
||||||
\begin{funcdesc}{firstkey}{}
|
\begin{funcdesc}{firstkey}{}
|
||||||
It's possible to loop over every key in the database using this method
|
It's possible to loop over every key in the database using this method
|
||||||
and the \code{nextkey()} method. The traversal is ordered by \code{gdbm}'s
|
and the \method{nextkey()} method. The traversal is ordered by
|
||||||
internal hash values, and won't be sorted by the key values. This
|
\code{gdbm}'s internal hash values, and won't be sorted by the key
|
||||||
method returns the starting key.
|
values. This method returns the starting key.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{nextkey}{key}
|
\begin{funcdesc}{nextkey}{key}
|
||||||
Returns the key that follows \var{key} in the traversal. The
|
Returns the key that follows \var{key} in the traversal. The
|
||||||
following code prints every key in the database \code{db}, without having to
|
following code prints every key in the database \code{db}, without
|
||||||
create a list in memory that contains them all:
|
having to create a list in memory that contains them all:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
k=db.firstkey()
|
k = db.firstkey()
|
||||||
while k!=None:
|
while k != None:
|
||||||
print k
|
print k
|
||||||
k=db.nextkey(k)
|
k = db.nextkey(k)
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{reorganize}{}
|
\begin{funcdesc}{reorganize}{}
|
||||||
If you have carried out a lot of deletions and would like to shrink
|
If you have carried out a lot of deletions and would like to shrink
|
||||||
the space used by the \code{gdbm} file, this routine will reorganize the
|
the space used by the \code{gdbm} file, this routine will reorganize
|
||||||
database. \code{gdbm} will not shorten the length of a database file except
|
the database. \code{gdbm} will not shorten the length of a database
|
||||||
by using this reorganization; otherwise, deleted file space will be
|
file except by using this reorganization; otherwise, deleted file
|
||||||
kept and reused as new (key,value) pairs are added.
|
space will be kept and reused as new (key, value) pairs are added.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{sync}{}
|
\begin{funcdesc}{sync}{}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{gzip} ---
|
\section{\module{gzip} ---
|
||||||
\program{gzip} compression and decompression using files.}
|
Support for \program{gzip} files}
|
||||||
\declaremodule{standard}{gzip}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{gzip}
|
||||||
\modulesynopsis{Interfaces for \program{gzip} compression and
|
\modulesynopsis{Interfaces for \program{gzip} compression and
|
||||||
decompression using file objects.}
|
decompression using file objects.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{keyword} ---
|
\section{\module{keyword} ---
|
||||||
Test whether a string is a Python keyword.}
|
Testing for Python keywords}
|
||||||
\declaremodule{standard}{keyword}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{keyword}
|
||||||
\modulesynopsis{Test whether a string is a keyword in Python.}
|
\modulesynopsis{Test whether a string is a keyword in Python.}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{select} ---
|
\section{\module{select} ---
|
||||||
Wait for I/O completion on multiple streams.}
|
Waiting for I/O completion}
|
||||||
\declaremodule{builtin}{select}
|
|
||||||
|
|
||||||
|
\declaremodule{builtin}{select}
|
||||||
\modulesynopsis{Wait for I/O completion on multiple streams.}
|
\modulesynopsis{Wait for I/O completion on multiple streams.}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{site} ---
|
\section{\module{site} ---
|
||||||
A standard way to reference site-specific modules.}
|
Site-specific configuration hook}
|
||||||
\declaremodule{standard}{site}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{site}
|
||||||
\modulesynopsis{A standard way to reference site-specific modules.}
|
\modulesynopsis{A standard way to reference site-specific modules.}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
\section{\module{symbol} ---
|
\section{\module{symbol} ---
|
||||||
Constants representing internal nodes of the parse tree.}
|
Constants used with Python parse trees}
|
||||||
\declaremodule{standard}{symbol}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{symbol}
|
||||||
\modulesynopsis{Constants representing internal nodes of the parse tree.}
|
\modulesynopsis{Constants representing internal nodes of the parse tree.}
|
||||||
|
\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
|
||||||
|
|
||||||
|
|
||||||
This module provides constants which represent the numeric values of
|
This module provides constants which represent the numeric values of
|
||||||
|
|
|
||||||
|
|
@ -95,17 +95,18 @@ def getpass(prompt = "Password: "):
|
||||||
return passwd
|
return passwd
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
\section{\module{TERMIOS} ---
|
|
||||||
Constants used with the \module{termios} module.}
|
|
||||||
\declaremodule[TERMIOSuppercase]{standard}{TERMIOS}
|
|
||||||
|
|
||||||
|
\section{\module{TERMIOS} ---
|
||||||
|
Constants used with \module{termios}}
|
||||||
|
|
||||||
|
\declaremodule[TERMIOSuppercase]{standard}{TERMIOS}
|
||||||
\modulesynopsis{Symbolic constants required to use the
|
\modulesynopsis{Symbolic constants required to use the
|
||||||
\module{termios} module.}
|
\module{termios} module.}
|
||||||
|
|
||||||
|
|
||||||
\indexii{\POSIX{}}{I/O control}
|
\indexii{\POSIX{}}{I/O control}
|
||||||
\indexii{tty}{I/O control}
|
\indexii{tty}{I/O control}
|
||||||
|
|
||||||
|
|
||||||
This module defines the symbolic constants required to use the
|
This module defines the symbolic constants required to use the
|
||||||
\module{termios}\refbimodindex{termios} module (see the previous
|
\module{termios}\refbimodindex{termios} module (see the previous
|
||||||
section). See the \POSIX{} or \UNIX{} manual pages (or the source)
|
section). See the \POSIX{} or \UNIX{} manual pages (or the source)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
\section{\module{token} ---
|
\section{\module{token} ---
|
||||||
Constants representing terminal nodes of the parse tree.}
|
Constants used with Python parse trees}
|
||||||
\declaremodule{standard}{token}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{token}
|
||||||
\modulesynopsis{Constants representing terminal nodes of the parse tree.}
|
\modulesynopsis{Constants representing terminal nodes of the parse tree.}
|
||||||
|
\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
|
||||||
|
|
||||||
|
|
||||||
This module provides constants which represent the numeric values of
|
This module provides constants which represent the numeric values of
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
\section{\module{user} ---
|
\section{\module{user} ---
|
||||||
A standard way to reference user-specific modules.}
|
User-specific configuration hook}
|
||||||
\declaremodule{standard}{user}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{user}
|
||||||
\modulesynopsis{A standard way to reference user-specific modules.}
|
\modulesynopsis{A standard way to reference user-specific modules.}
|
||||||
|
|
||||||
|
|
||||||
\indexii{.pythonrc.py}{file}
|
\indexii{.pythonrc.py}{file}
|
||||||
\indexiii{user}{configuration}{file}
|
\indexiii{user}{configuration}{file}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
\section{\module{whichdb} ---
|
\section{\module{whichdb} ---
|
||||||
Guess which DBM-style module created a given database.}
|
Guess which DBM module created a database}
|
||||||
\declaremodule{standard}{whichdb}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{whichdb}
|
||||||
\modulesynopsis{Guess which DBM-style module created a given database.}
|
\modulesynopsis{Guess which DBM-style module created a given database.}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
% hasn't been updated completely.
|
% hasn't been updated completely.
|
||||||
|
|
||||||
\section{\module{zlib} ---
|
\section{\module{zlib} ---
|
||||||
Compression and decompression compatible with \program{gzip}.}
|
Compression library compatible with \program{gzip}.}
|
||||||
\declaremodule{builtin}{zlib}
|
|
||||||
|
|
||||||
|
\declaremodule{builtin}{zlib}
|
||||||
\modulesynopsis{Low-level interface to compression and decompression
|
\modulesynopsis{Low-level interface to compression and decompression
|
||||||
routines compatible with \program{gzip}.}
|
routines compatible with \program{gzip}.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue