|
5261
|
1 \section{Standard Module \sectcode{whichdb}}
|
|
|
2 \stmodindex{whichdb}
|
|
|
3
|
|
|
4 The single function in this module attempts to guess which of the
|
|
|
5 several simple database modules available--dbm, gdbm, or
|
|
|
6 dbhash--should be used to open a given file.
|
|
|
7
|
|
|
8 \renewcommand{\indexsubitem}{(in module whichdb)}
|
|
|
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}
|
|
|
16
|