Lines Matching refs:ndbm
5 import dbm.ndbm
6 from dbm.ndbm import error
12 self.d = dbm.ndbm.open(self.filename, 'c')
20 self.d = dbm.ndbm.open(self.filename, 'c')
40 if dbm.ndbm.library == 'Berkeley DB':
43 self.d = dbm.ndbm.open(self.filename, 'c')
56 self.d = dbm.ndbm.open(self.filename, mode)
62 with dbm.ndbm.open(self.filename, 'c') as db:
65 with dbm.ndbm.open(self.filename, 'r') as db:
68 with self.assertRaises(dbm.ndbm.error) as cm:
74 with dbm.ndbm.open(self.filename, 'c') as db:
76 with dbm.ndbm.open(self.filename, 'r') as db:
82 with dbm.ndbm.open(self.filename, 'c') as db:
84 with dbm.ndbm.open(self.filename, 'r') as db:
99 with dbm.ndbm.open(filename, 'c') as db:
103 with dbm.ndbm.open(filename, 'r') as db: