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)
This commit is contained in:
Guido van Rossum 1995-01-10 00:31:14 +00:00
parent 8a30adc33f
commit a48061a580
4 changed files with 681 additions and 0 deletions

9
Lib/anydbm.py Normal file
View file

@ -0,0 +1,9 @@
"""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