diff options
author | Guido van Rossum <guido@python.org> | 1995-01-10 00:31:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-10 00:31:14 (GMT) |
commit | a48061a5804418a63aac24bfce444fd555e3ffe7 (patch) | |
tree | b79aefe89c044651dc6ac1f9981c9c7530c0e666 /Lib/anydbm.py | |
parent | 8a30adc33ffe494f464f1a30c42f28fb3088970a (diff) | |
download | cpython-a48061a5804418a63aac24bfce444fd555e3ffe7.zip cpython-a48061a5804418a63aac24bfce444fd555e3ffe7.tar.gz cpython-a48061a5804418a63aac24bfce444fd555e3ffe7.tar.bz2 |
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)
Diffstat (limited to 'Lib/anydbm.py')
-rw-r--r-- | Lib/anydbm.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py new file mode 100644 index 0000000..49e819b --- /dev/null +++ b/Lib/anydbm.py @@ -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 |