Oops -- Lib/Test should be Lib/test, of course!
[python/dscho.git] / Doc / lib / libwhichdb.tex
blob2caace28c1c3cce6bcd01b1d0af732d229f18f4b
1 \section{Standard Module \module{whichdb}}
2 \label{module-whichdb}
3 \stmodindex{whichdb}
5 The single function in this module attempts to guess which of the
6 several simple database modules available--dbm, gdbm, or
7 dbhash--should be used to open a given file.
9 \begin{funcdesc}{whichdb}{filename}
10 Returns one of the following values: \code{None} if the file can't be
11 opened because it's unreadable or doesn't exist; the empty string
12 (\code{""}) if the file's format can't be guessed; or a string
13 containing the required module name, such as \code{"dbm"} or
14 \code{"gdbm"}.
15 \end{funcdesc}