The shelve
module is implemented on top of the anydbm
module. This module acts as a façade for 4 different specific DBM implementations, and it will pick the first module available when creating a new database, in the following order:
dbhash (deprecated but still the first
anydbm
choice). This is a proxy for thebsddb
module,.open()
is reallybsddb.hashopen()
gdbm, Python module for the GNU DBM library, offering more functionality than the
dbm
module can offer when used with this same library.dbm, a proxy module using either the
ndbm
, BSD DB and GNU DBM libraries (chosen when Python is compiled).dumbdbm, a pure-python implementation.
But in my system although I have dbhash
for some reason I want it to create the db just with the dumbdbm
.
How can I achieve that?