blob: fbdfa8c805ad2162f3b6e337827deda5b93c4b5a [file] [log] [blame]
Guido van Rossum571391b1997-04-03 22:41:49 +00001\section{Standard Module \sectcode{whichdb}}
2\stmodindex{whichdb}
3
4The single function in this module attempts to guess which of the
5several simple database modules available--dbm, gdbm, or
6dbhash--should be used to open a given file.
7
8\renewcommand{\indexsubitem}{(in module whichdb)}
9\begin{funcdesc}{whichdb}{filename}
10Returns one of the following values: \code{None} if the file can't be
11opened 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
13containing the required module name, such as \code{"dbm"} or
14\code{"gdbm"}.
15\end{funcdesc}
16