mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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:
parent
8a30adc33f
commit
a48061a580
4 changed files with 681 additions and 0 deletions
9
Lib/anydbm.py
Normal file
9
Lib/anydbm.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue