Lines Matching refs:dbm
1 """Generic interface to all dbm clones.
5 import dbm
6 d = dbm.open(file, 'w', 0o666)
8 The returned object is a dbm.gnu, dbm.ndbm or dbm.dumb object, dependent on the
10 of an existing dbm. If the dbm does not exist and the create or new flag ('c'
11 or 'n') was specified, the dbm type will be determined by the availability of
26 tested for existence, and add interfaces to other dbm-like
41 _names = ['dbm.gnu', 'dbm.ndbm', 'dbm.dumb']
48 from dbm import ndbm
75 raise ImportError("no dbm clone found; tried %s" % _names)
105 - the name of the dbm submodule (e.g. "ndbm" or "gnu") if recognized.
118 return "dbm.ndbm"
120 # some dbm emulations based on Berkeley DB generate a .db file
125 # guarantee we can actually open the file using dbm
131 return "dbm.ndbm"
142 return "dbm.dumb"
146 return "dbm.dumb"
173 # Check for GNU dbm
175 return "dbm.gnu"