Home
last modified time | relevance | path

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

1234

/external/python/cpython3/Lib/test/
Dtest_dbm_ndbm.py5 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:
[all …]
Dtest_dbm.py8 dbm = test.support.import_module('dbm') variable
11 from dbm import ndbm
22 for name in dbm._names:
27 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 …]
/external/python/cpython2/Doc/library/
Ddbm.rst1 :mod:`dbm` --- Simple "database" interface
4 .. module:: dbm
9 The :mod:`dbm` module has been renamed to :mod:`dbm.ndbm` in Python 3. The
14 The :mod:`dbm` module provides an interface to the Unix "(n)dbm" library. Dbm
16 always strings. Printing a dbm object doesn't print the keys and values, and the
29 Raised on dbm-specific errors, such as I/O errors. :exc:`KeyError` is raised for
40 Open a dbm database and return a dbm object. The *filename* argument is the
67 In addition to the dictionary-like methods, ``dbm`` objects
73 Close the ``dbm`` database.
79 Generic interface to ``dbm``\ -style databases.
Danydbm.rst9 The :mod:`anydbm` module has been renamed to :mod:`dbm` in Python 3. The
17 module: dbm
21 :mod:`dbhash` (requires :mod:`bsddb`), :mod:`gdbm`, or :mod:`dbm`. If none of
108 Module :mod:`dbm`
112 Portable implementation of the ``dbm`` interface.
115 GNU database interface, based on the ``dbm`` interface.
118 General object persistence built on top of the Python ``dbm`` interface.
Dgdbm.rst1 :mod:`gdbm` --- GNU's reinterpretation of dbm
6 :synopsis: GNU's reinterpretation of dbm.
9 The :mod:`gdbm` module has been renamed to :mod:`dbm.gnu` in Python 3. The
14 .. index:: module: dbm
16 This module is quite similar to the :mod:`dbm` module, but uses ``gdbm`` instead
18 created by ``gdbm`` and ``dbm`` are incompatible.
127 Generic interface to ``dbm``\ -style databases.
Dwhichdb.rst8 The :mod:`whichdb` module's only function has been put into the :mod:`dbm`
14 database modules available—:mod:`dbm`, :mod:`gdbm`, or :mod:`dbhash`\
23 such as ``'dbm'`` or ``'gdbm'``.
Dshelve.rst14 A "shelf" is a persistent, dictionary-like object. The difference with "dbm"
89 module: dbm
93 * The choice of which database package will be used (such as :mod:`dbm`,
95 it is not safe to open the database directly using :mod:`dbm`. The database is
96 also (unfortunately) subject to the limitations of :mod:`dbm`, if it is used ---
189 Generic interface to ``dbm``\ -style databases.
198 Module :mod:`dbm`
202 Portable implementation of the ``dbm`` interface.
205 GNU database interface, based on the ``dbm`` interface.
Ddumbdbm.rst8 The :mod:`dumbdbm` module has been renamed to :mod:`dbm.dumb` in Python 3.
64 Generic interface to ``dbm``\ -style databases.
66 Module :mod:`dbm`
Dpersistence.rst27 dbm.rst
/external/python/cpython3/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`.
87 module: dbm.ndbm
88 module: dbm.gnu
90 * The choice of which database package will be used (such as :mod:`dbm.ndbm` or
91 :mod:`dbm.gnu`) depends on which interface is available. Therefore it is not
92 safe to open the database directly using :mod:`dbm`. The database is also
93 (unfortunately) subject to the limitations of :mod:`dbm`, if it is used ---
150 object. The underlying file will be opened using :func:`dbm.open`. By
198 Module :mod:`dbm`
[all …]
Dpersistence.rst22 dbm.rst
/external/python/cpython2/Lib/
Dwhichdb.py9 import dbm
10 _dbmerror = dbm.error
12 dbm = None variable
35 if not (dbm.library == "GNU gdbm" and sys.platform == "os2emx"):
48 if dbm is not None:
49 d = dbm.open(filename)
/external/python/cpython2/Demo/classes/
DDates.py54 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, year
DDbm.py10 import dbm
11 self.db = dbm.open(filename, mode, perm)
DREADME5 Dbm.py Wrapper around built-in dbm, supporting arbitrary values
/external/python/cpython3/Tools/scripts/
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
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
/external/python/cpython2/Lib/test/
Dtest_dbm.py3 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/cpython2/Tools/scripts/
Ddb2pickle.py28 import dbm
30 dbm = None variable
107 dbopen = dbm.open
Dpickle2db.py33 import dbm
35 dbm = None variable
112 dbopen = dbm.open
/external/autotest/client/cros/cellular/
Dbase_station_pxt.py108 def SetPower(self, dbm): argument
111 if dbm <= cellular.Power.OFF:
114 self.c.SendStanza(['AMPLitude:ALL %s' % dbm])
Dbase_station_8960.py124 def SetPower(self, dbm): argument
125 if dbm <= cellular.Power.OFF :
130 'CALL:CELL:POWer %s' % dbm,])
Dbase_station_interface.py47 def SetPower(self, dbm): argument
/external/python/cpython3/Lib/
Dshelve.py226 import dbm
227 Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)

1234