Home
last modified time | relevance | path

Searched refs:dbm (Results 1 – 25 of 42) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_dbm.py4 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 …]
Dtest_dbm_ndbm.py6 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 …]
Dtest_shelve.py2 import dbm
187 self.addCleanup(setattr, dbm, '_defaultmod', dbm._defaultmod)
188 dbm._defaultmod = self.dbm_mod
Dtest_dbm_dumb.py11 import dbm.dumb as dumbdbm
/third_party/python/Doc/library/
Ddbm.rst1 :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 …]
Dshelve.rst13 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 …]
Dpersistence.rst22 dbm.rst
/third_party/python/Tools/scripts/
Ddb2pickle.py28 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
Dpickle2db.py33 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/
DVulkanPipelineCachePerf.cpp91 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/
Dshelve.py226 import dbm
227 Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
Ddatetime.py36 dbm = 0 variable
38 _DAYS_BEFORE_MONTH.append(dbm)
39 dbm += dim
40 del dbm, dim
/third_party/python/Lib/dbm/
D__init__.py48 from dbm import ndbm
/third_party/python/Modules/
DSetup329 # 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/
D3.6.0a3.rst79 Deprecated dbm.dumb behavior that differs from common dbm behavior: creating
D3.5.0a2.rst224 Fixed arbitrary code execution vulnerability in the dbm.dumb module.
D3.7.0b4.rst88 Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
D3.7.0b2.rst140 dbm.open() now encodes filename with the filesystem encoding rather than
D3.6.6rc1.rst301 Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
D3.6.5rc1.rst236 dbm.open() now encodes filename with the filesystem encoding rather than
D3.9.0b1.rst502 Update :mod:`dbm.gnu` to use gdbm_count if possible when calling
D3.6.1rc1.rst626 dbm.dumb now supports reading read-only files and no longer writes the index
/third_party/python/Doc/whatsnew/
D3.8.rst1897 * 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/
Dlibrary.rst792 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/
Dshell.c9514 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 …]

12