summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libanydbm.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-28 15:29:26 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-28 15:29:26 (GMT)
commit2aefe8d7c00c82e9c8108d22cf1ff29a41de2c5b (patch)
tree1331e941e6a5c82bcfa47415342fd85555c4dcee /Doc/lib/libanydbm.tex
parentfc1f64d90d1daa3fb4e4efdc8034c6fcbbf0dd93 (diff)
downloadcpython-2aefe8d7c00c82e9c8108d22cf1ff29a41de2c5b.zip
cpython-2aefe8d7c00c82e9c8108d22cf1ff29a41de2c5b.tar.gz
cpython-2aefe8d7c00c82e9c8108d22cf1ff29a41de2c5b.tar.bz2
Document changed semantics -- open() now guesses the db type and error
is now a tuple of various and sundry exceptions.
Diffstat (limited to 'Doc/lib/libanydbm.tex')
-rw-r--r--Doc/lib/libanydbm.tex12
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/lib/libanydbm.tex b/Doc/lib/libanydbm.tex
index 592fd21..bba7714 100644
--- a/Doc/lib/libanydbm.tex
+++ b/Doc/lib/libanydbm.tex
@@ -11,6 +11,12 @@ be used.
\begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}}
Open the database file \var{filename} and return a corresponding object.
+
+If the database file already exists, the \module{whichdb} module is
+used to determine its type and the appropriate module is used; if it
+doesn't exist, the first module listed above that can be imported is
+used.
+
The optional \var{flag} argument can be
\code{'r'} to open an existing database for reading only,
\code{'w'} to open an existing database for reading and writing,
@@ -24,8 +30,10 @@ only when the database has to be created. It defaults to octal
\end{funcdesc}
\begin{excdesc}{error}
-An alternate name for the \exception{error} exception defined by the
-underlying database implementation.
+A tuple containing the exceptions that can be raised by each of the
+supported modules, with a unique exception \exception{anydbm.error} as
+the first item --- the latter is used when \exception{anydbm.error} is
+raised.
\end{excdesc}
The object returned by \function{open()} supports most of the same