cpython/Lib/anydbm.py
Guido van Rossum a48061a580 shelve.py: database of persistent objects, on top of pickle.py and anydbm.py
pickle.py: new low-level persistency module (used to be called flatten)
dbmac.py: stupid dbm clone for the Mac
anydbm.py: generic dbm interface (should be extended to support gdbm)
1995-01-10 00:31:14 +00:00

9 lines
182 B
Python

"""A generic interface to all dbm clones."""
try:
import dbm
def open(file, mode = 'rw'):
return dbm.open(file, mode, 0666)
except ImportError:
import dbmac
open = dbmac.open