The anydbm
module provides a unified interface to the simple database
drivers supported by Python.
The first time it is imported, the anydbm
module looks for a suitable database driver, testing for
dbhash
,
gdbm
,
dbm
, or
dumbdbm
, in
that order. If no such module is found, it raises an
ImportError
exception.
In Example 10-1, the open
function is used to open or create a
database, using the chosen database handler.
18.118.32.222