/third_party/python/Lib/test/ |
D | test_dbm.py | 4 import dbm 10 from dbm import ndbm 21 for name in dbm._names: 26 dbm._modules[name] = mod 50 f = dbm.open(_fname, 'n') 65 self.assertRaises(dbm.error, dbm.open, _fname) 68 f = dbm.open(_fname, 'c') 78 with dbm.open(_fname, 'n') as f: 83 f = dbm.open(_fname, 'c') 93 f = dbm.open(_fname, 'r') [all …]
|
D | test_dbm_ndbm.py | 6 import dbm.ndbm 7 from dbm.ndbm import error 13 self.d = dbm.ndbm.open(self.filename, 'c') 21 self.d = dbm.ndbm.open(self.filename, 'c') 41 if dbm.ndbm.library == 'Berkeley DB': 44 self.d = dbm.ndbm.open(self.filename, 'c') 57 self.d = dbm.ndbm.open(self.filename, mode) 63 with dbm.ndbm.open(self.filename, 'c') as db: 66 with dbm.ndbm.open(self.filename, 'r') as db: 69 with self.assertRaises(dbm.ndbm.error) as cm: [all …]
|
D | test_shelve.py | 2 import dbm 187 self.addCleanup(setattr, dbm, '_defaultmod', dbm._defaultmod) 188 dbm._defaultmod = self.dbm_mod
|
D | test_dbm_dumb.py | 11 import dbm.dumb as dumbdbm
|
/third_party/python/Doc/library/ |
D | dbm.rst | 1 :mod:`dbm` --- Interfaces to Unix "databases" 4 .. module:: dbm 7 **Source code:** :source:`Lib/dbm/__init__.py` 11 :mod:`dbm` is a generic interface to variants of the DBM database --- 12 :mod:`dbm.gnu` or :mod:`dbm.ndbm`. If none of these modules is installed, the 13 slow-but-simple implementation in module :mod:`dbm.dumb` will be used. There 21 modules, with a unique exception also named :exc:`dbm.error` as the first 22 item --- the latter is used when :exc:`dbm.error` is raised. 28 available --- :mod:`dbm.gnu`, :mod:`dbm.ndbm` or :mod:`dbm.dumb` --- should 34 name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'``. [all …]
|
D | shelve.rst | 13 A "shelf" is a persistent, dictionary-like object. The difference with "dbm" 26 has the same interpretation as the *flag* parameter of :func:`dbm.open`. 95 module: dbm.ndbm 96 module: dbm.gnu 98 * The choice of which database package will be used (such as :mod:`dbm.ndbm` or 99 :mod:`dbm.gnu`) depends on which interface is available. Therefore it is not 100 safe to open the database directly using :mod:`dbm`. The database is also 101 (unfortunately) subject to the limitations of :mod:`dbm`, if it is used --- 163 object. The underlying file will be opened using :func:`dbm.open`. By 211 Module :mod:`dbm` [all …]
|
D | persistence.rst | 22 dbm.rst
|
/third_party/python/Tools/scripts/ |
D | db2pickle.py | 28 import dbm.ndbm as dbm namespace 30 dbm = None variable 32 import dbm.gnu as gdbm 36 import dbm.ndbm as anydbm 107 dbopen = dbm.open
|
D | pickle2db.py | 33 import dbm.ndbm as dbm namespace 35 dbm = None variable 37 import dbm.gnu as gdbm 41 import dbm.ndbm as anydbm 112 dbopen = dbm.open
|
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | VulkanPipelineCachePerf.cpp | 91 gl::DrawBufferMask dbm; in step() local 105 (void)mCache.getPipeline(VK_NULL_HANDLE, pc, rp, pl, am, ctm, dbm, ssm, in step() 114 (void)mCache.getPipeline(VK_NULL_HANDLE, pc, rp, pl, am, ctm, dbm, ssm, defaultSpecConsts, in step()
|
/third_party/python/Lib/ |
D | shelve.py | 226 import dbm 227 Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
|
D | datetime.py | 36 dbm = 0 variable 38 _DAYS_BEFORE_MONTH.append(dbm) 39 dbm += dim 40 del dbm, dim
|
/third_party/python/Lib/dbm/ |
D | __init__.py | 48 from dbm import ndbm
|
/third_party/python/Modules/ |
D | Setup | 329 # dependencies. The Python module dbm/__init__.py provides an 330 # implementation independent wrapper for these; dbm/dumb.py provides 333 #_dbm _dbmmodule.c # dbm(3) may require -lndbm or similar 335 # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.0a3.rst | 79 Deprecated dbm.dumb behavior that differs from common dbm behavior: creating
|
D | 3.5.0a2.rst | 224 Fixed arbitrary code execution vulnerability in the dbm.dumb module.
|
D | 3.7.0b4.rst | 88 Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
|
D | 3.7.0b2.rst | 140 dbm.open() now encodes filename with the filesystem encoding rather than
|
D | 3.6.6rc1.rst | 301 Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
|
D | 3.6.5rc1.rst | 236 dbm.open() now encodes filename with the filesystem encoding rather than
|
D | 3.9.0b1.rst | 502 Update :mod:`dbm.gnu` to use gdbm_count if possible when calling
|
D | 3.6.1rc1.rst | 626 dbm.dumb now supports reading read-only files and no longer writes the index
|
/third_party/python/Doc/whatsnew/ |
D | 3.8.rst | 1897 * A :mod:`dbm.dumb` database opened with flags ``'r'`` is now read-only. 1898 :func:`dbm.dumb.open` with flags ``'r'`` and ``'w'`` no longer creates 1949 * Deleting a key from a read-only :mod:`dbm` database (:mod:`dbm.dumb`, 1950 :mod:`dbm.gnu` or :mod:`dbm.ndbm`) raises :attr:`error` (:exc:`dbm.dumb.error`, 1951 :exc:`dbm.gnu.error` or :exc:`dbm.ndbm.error`) instead of :exc:`KeyError`.
|
/third_party/python/Doc/faq/ |
D | library.rst | 792 Interfaces to disk-based hashes such as :mod:`DBM <dbm.ndbm>` and :mod:`GDBM 793 <dbm.gnu>` are also included with standard Python. There is also the 807 :mod:`shelve` library module uses pickle and (g)dbm to create persistent
|
/third_party/sqlite/src/ |
D | shell.c | 9514 sqlite3 *dbm; /* In-memory db for this analysis */ member 10240 sqlite3* dbm, /* Database to search */ in idxFindCompatible() argument 10254 rc = idxPrintfPrepareStmt(dbm, &pIdxList, 0, "PRAGMA index_list=%Q", zTbl); in idxFindCompatible() 10265 rc = idxPrintfPrepareStmt(dbm, &pInfo, 0, "PRAGMA index_xInfo=%Q", zIdx); in idxFindCompatible() 10325 sqlite3 *dbm = p->dbm; in idxCreateFromCons() local 10327 if( (pEq || pTail) && 0==idxFindCompatible(&rc, dbm, pScan, pEq, pTail) ){ in idxCreateFromCons() 10362 rc = sqlite3_exec(dbm, zFind, countNonzeros, &i, 0); in idxCreateFromCons() 10386 rc = sqlite3_exec(dbm, zIdx, 0, 0, p->pzErrmsg); in idxCreateFromCons() 10548 sqlite3 *dbm = p->dbm; in idxFindIndexes() local 10558 rc = idxPrintfPrepareStmt(dbm, &pExplain, pzErr, in idxFindIndexes() [all …]
|