Mercurial > cpython-lru_cache-weakref
view Doc/lib/libwhichdb.tex @ 21467:4e35fa5d5708 legacy-trunk
Add documentation for the help() built-in; contributed by Ka-Ping Yee.
This is part of SF patch #494622.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 18 Dec 2001 16:31:08 +0000 |
| parents | 99681ee86698 |
| children |
line wrap: on
line source
\section{\module{whichdb} --- Guess which DBM module created a database} \declaremodule{standard}{whichdb} \modulesynopsis{Guess which DBM-style module created a given database.} The single function in this module attempts to guess which of the several simple database modules available--\refmodule{dbm}, \refmodule{gdbm}, or \refmodule{dbhash}--should be used to open a given file. \begin{funcdesc}{whichdb}{filename} Returns one of the following values: \code{None} if the file can't be opened because it's unreadable or doesn't exist; the empty string (\code{''}) if the file's format can't be guessed; or a string containing the required module name, such as \code{'dbm'} or \code{'gdbm'}. \end{funcdesc}
