Built-in Module dbm

dbm

Dbm provides python programs with an interface to the unix ndbm database library. Dbm objects are of the mapping type, so they can be handled just like objects of the built-in dictionary type, except that keys and values are always strings, and printing a dbm object doesn't print the keys and values.

The module defines the following constant and functions:


\begin{excdesc}{error}
Raised on dbm-specific errors, such as I/O errors. \code{...
...aised for general mapping errors like specifying an incorrect key.
\end{excdesc}


\begin{funcdesc}{open}{filename\, rwmode\, filemode}
Open a dbm database and ret...
... mode of the file, used only
when the database has to be created.
\end{funcdesc}