Merged release21-maint changes.
[python/dscho.git] / Doc / lib / libwhichdb.tex
blob92d37e7235e315aea1f3d5fa0693df22ff595385
1 \section{\module{whichdb} ---
2 Guess which DBM module created a database}
4 \declaremodule{standard}{whichdb}
5 \modulesynopsis{Guess which DBM-style module created a given database.}
8 The single function in this module attempts to guess which of the
9 several simple database modules available--\refmodule{dbm},
10 \refmodule{gdbm}, or \refmodule{dbhash}--should be used to open a
11 given file.
13 \begin{funcdesc}{whichdb}{filename}
14 Returns one of the following values: \code{None} if the file can't be
15 opened because it's unreadable or doesn't exist; the empty string
16 (\code{''}) if the file's format can't be guessed; or a string
17 containing the required module name, such as \code{'dbm'} or
18 \code{'gdbm'}.
19 \end{funcdesc}