This module is quite similar to the dbm module, but uses gdbm
instead to provide some additional functionality. Please note
that the file formats created by dbm are incompatible. The gdbm
module provides an interface to the GNU DBM gdbm objects behave
like mappings (dictionaries), except that keys and values are
always strings. gdbm object doesn't print the keys and values,
and the items() and values() methods are not supported. The
module defines the following constant and functions: gdbm-
specific errors, such as I/O errors. KeyError is raised for
general mapping errors like specifying an incorrect key.
gdbmdatabase and return a gdbmobject. The filename argument is
the name of the database file. The optional flag argument can be
'r' (to open an existing database for reading only -- default),
'w' (to open an existing database for reading and writing), 'c'
(which creates the database if it doesn't exist), or 'n' (which
always creates a new empty database). Appending "f" to the flag
opens the database in fast m