Next: grp Prev: UNIX ONLY Up: UNIX ONLY 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'
as for
open
, and filemode is the unix mode of the file, used only
when the database has to be created.