Next: gdbm Prev: grp Up: UNIX Specific Services Top: Top
dbm
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:
KeyError
is
raised for general mapping errors like specifying an incorrect key.
'r'
, 'w'
or 'rw'
to
open the database fore reading, writing or both respectively,
and filemode is the UNIX mode of the file, used only
when the database has to be created (but to be supplied at all times).