/external/python/cpython3/Lib/test/ |
H A D | test_dbm_ndbm.py | 2 support.import_module("dbm.ndbm") #skip if not supported 4 import dbm.ndbm namespace 5 from dbm.ndbm import error 11 self.d = dbm.ndbm.open(self.filename, 'c') 19 self.d = dbm.ndbm.open(self.filename, 'c') 33 self.d = dbm.ndbm.open(self.filename, mode) 39 with dbm.ndbm.open(self.filename, 'c') as db: 42 with dbm.ndbm.open(self.filename, 'r') as db: 45 with self.assertRaises(dbm.ndbm.error) as cm:
|
H A D | test_dbm.py | 1 """Test script for the dbm.open function based on testdumbdbm.py""" 7 # Skip tests if dbm module doesn't exist. 8 dbm = test.support.import_module('dbm') variable 11 from dbm import ndbm 18 # Iterates over every database module supported by dbm currently available, 19 # setting dbm to use each in turn, and yielding that module 22 for name in dbm._names: 27 dbm._modules[name] = mod 51 f = dbm [all...] |
H A D | test_dbm_dumb.py | 11 import dbm.dumb as dumbdbm namespace
|
H A D | pickletester.py | 3 import dbm namespace 982 self.assertIs(self.loads(pickled), dbm.whichdb) 2242 (dbm.whichdb, 'whichdb', 'whichdb'),
|
/external/python/cpython2/Lib/ |
H A D | whichdb.py | 9 import dbm namespace 10 _dbmerror = dbm.error 12 dbm = None variable 14 # dbm test 24 - the module name (e.g. "dbm" or "gdbm") if recognized. 30 # Check for dbm first -- this has a .pag and a .dir file 34 # dbm linked with gdbm on OS/2 doesn't have .dir file 35 if not (dbm.library == "GNU gdbm" and sys.platform == "os2emx"): 38 return "dbm" 40 # some dbm emulation [all...] |
/external/python/cpython2/Lib/test/ |
H A D | test_dbm.py | 3 dbm = test_support.import_module('dbm') variable 9 self.d = dbm.open(self.filename, 'c') 17 self.d = dbm.open(self.filename, 'c') 33 self.d = dbm.open(self.filename, mode) 35 except dbm.error:
|
/external/python/cpython3/Tools/scripts/ |
H A D | db2pickle.py | 9 -a - open using dbm (any supported format) 11 -d - open as dbm file 28 import dbm.ndbm as dbm namespace 30 dbm = None variable 32 import dbm.gnu as gdbm namespace 36 import dbm.ndbm as anydbm namespace 53 ["hash", "btree", "recno", "dbm", 97 sys.stderr.write("dbm module unavailable.\n") 103 sys.stderr.write("dbm [all...] |
H A D | pickle2db.py | 10 -a - open using dbm (open any supported format) 12 -d - open as dbm.ndbm file 13 -g - open as dbm.gnu file 33 import dbm.ndbm as dbm namespace 35 dbm = None variable 37 import dbm.gnu as gdbm namespace 41 import dbm.ndbm as anydbm namespace 58 ["hash", "btree", "recno", "dbm", "anydbm", 102 sys.stderr.write("dbm modul [all...] |
/external/python/cpython2/Demo/classes/ |
H A D | Dates.py | 54 dbm = 0 variable 56 _DAYS_BEFORE_MONTH.append(dbm) 57 dbm = dbm + dim variable 58 del dbm, dim 108 dbm = _days_before_month(month, year) 109 if dbm >= n: 111 dbm = dbm - _days_in_month(month, year) 113 ans.month, ans.day, ans.year = month, n-dbm, yea [all...] |
H A D | Dbm.py | 1 # A wrapper around the (optional) built-in class dbm, supporting keys 10 import dbm namespace 11 self.db = dbm.open(filename, mode, perm) 44 d = Dbm('@dbm', 'rw', 0600)
|
/external/python/cpython2/Tools/scripts/ |
H A D | db2pickle.py | 11 -d - open as dbm file 28 import dbm namespace 30 dbm = None variable 53 ["hash", "btree", "recno", "dbm", 105 elif opt in ("-d", "--dbm"): 107 dbopen = dbm.open 109 sys.stderr.write("dbm module unavailable.\n")
|
H A D | pickle2db.py | 12 -d - open as dbm file 33 import dbm namespace 35 dbm = None variable 58 ["hash", "btree", "recno", "dbm", "anydbm", 110 elif opt in ("-d", "--dbm"): 112 dbopen = dbm.open 114 sys.stderr.write("dbm module unavailable.\n")
|
/external/autotest/client/cros/cellular/ |
H A D | base_station_interface.py | 47 def SetPower(self, dbm): 51 dbm: Power, in dBm. See class Power for useful constants.
|
H A D | base_station_pxt.py | 108 def SetPower(self, dbm): 111 if dbm <= cellular.Power.OFF: 114 self.c.SendStanza(['AMPLitude:ALL %s' % dbm])
|
H A D | base_station_8960.py | 124 def SetPower(self, dbm): 125 if dbm <= cellular.Power.OFF : 130 'CALL:CELL:POWer %s' % dbm,])
|
/external/python/cpython3/Lib/dbm/ |
H A D | __init__.py | 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 [all...] |
/external/python/cpython3/Lib/ |
H A D | shelve.py | 4 with dbm databases is that the values (not the keys!) in a shelf can 14 d = shelve.open(filename) # open, with (g)dbm filename -- no suffix 179 set_location() that have no counterpart in [g]dbm databases. 219 """Shelf implementation using the "dbm" generic dbm interface. 221 This is initialized with the filename for the dbm database. 226 import dbm namespace 227 Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback) 237 dbm.open(). The optional protocol parameter specifies the
|
H A D | datetime.py | 30 dbm = 0 variable 32 _DAYS_BEFORE_MONTH.append(dbm) 33 dbm += dim 34 del dbm, dim
|
/external/sqlite/dist/orig/ |
H A D | shell.c | 6067 sqlite3 *dbm; /* In-memory db for this analysis */ member in struct:sqlite3expert 6763 ** Search database dbm for an index compatible with the one idxCreateFromCons() 6772 sqlite3* dbm, /* Database to search */ 6786 rc = idxPrintfPrepareStmt(dbm, &pIdxList, 0, "PRAGMA index_list=%Q", zTbl); 6796 rc = idxPrintfPrepareStmt(dbm, &pInfo, 0, "PRAGMA index_xInfo=%Q", zIdx); 6843 sqlite3 *dbm = p->dbm; local 6845 if( (pEq || pTail) && 0==idxFindCompatible(&rc, dbm, pScan, pEq, pTail) ){ 6881 rc = sqlite3_exec(dbm, zIdx, 0, 0, p->pzErrmsg); 6942 ** Create candidate indexes in database [dbm] base 6770 idxFindCompatible( int *pRc, sqlite3* dbm, IdxScan *pScan, IdxConstraint *pEq, IdxConstraint *pTail ) argument 7039 sqlite3 *dbm = p->dbm; local [all...] |
/external/sqlite/dist/ |
H A D | shell.c | 6073 sqlite3 *dbm; /* In-memory db for this analysis */ member in struct:sqlite3expert 6769 ** Search database dbm for an index compatible with the one idxCreateFromCons() 6778 sqlite3* dbm, /* Database to search */ 6792 rc = idxPrintfPrepareStmt(dbm, &pIdxList, 0, "PRAGMA index_list=%Q", zTbl); 6802 rc = idxPrintfPrepareStmt(dbm, &pInfo, 0, "PRAGMA index_xInfo=%Q", zIdx); 6849 sqlite3 *dbm = p->dbm; local 6851 if( (pEq || pTail) && 0==idxFindCompatible(&rc, dbm, pScan, pEq, pTail) ){ 6887 rc = sqlite3_exec(dbm, zIdx, 0, 0, p->pzErrmsg); 6948 ** Create candidate indexes in database [dbm] base 6776 idxFindCompatible( int *pRc, sqlite3* dbm, IdxScan *pScan, IdxConstraint *pEq, IdxConstraint *pTail ) argument 7045 sqlite3 *dbm = p->dbm; local [all...] |
/external/python/cpython2/ |
H A D | configure | 1515 order to check db backends for dbm. Valid value is a
|
/external/python/cpython3/ |
H A D | configure | 1521 order to check db backends for dbm. Valid value is a
|