source: vendor/python/2.5/Doc/lib/libwhichdb.tex

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 723 bytes
Line 
1\section{\module{whichdb} ---
2 Guess which DBM module created a database}
3
4\declaremodule{standard}{whichdb}
5\modulesynopsis{Guess which DBM-style module created a given database.}
6
7
8The single function in this module attempts to guess which of the
9several simple database modules available--\refmodule{dbm},
10\refmodule{gdbm}, or \refmodule{dbhash}--should be used to open a
11given file.
12
13\begin{funcdesc}{whichdb}{filename}
14Returns one of the following values: \code{None} if the file can't be
15opened 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
17containing the required module name, such as \code{'dbm'} or
18\code{'gdbm'}.
19\end{funcdesc}
20
Note: See TracBrowser for help on using the repository browser.