The dumbdbm module provides a persistent dictionary-like interface which is written entirely in Python. Unlike other modules such as gdbm and bsddb, no external library is required. As with other persistent mappings, the keys and values must always be strings.
The module defines the following:
filename[, flag[, mode]]) |
The optional flag argument is currently ignored; the database is always opened for update, and will be created if it does not exist.
The optional mode argument is the Unix mode of the file, used
only when the database has to be created. It defaults to octal
0666
(and will be modified by the prevailing umask).
Changed in version 2.2:
The mode argument was ignored in earlier
versions.
See Also:
dbm
-style databases.