mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00

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)
9 lines
182 B
Python
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
|