Lines Matching refs:dbm
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'``.
90 import dbm
93 with dbm.open('cache', 'c') as db:
124 :mod:`dbm.gnu` --- GNU's reinterpretation of dbm
127 .. module:: dbm.gnu
129 :synopsis: GNU's reinterpretation of dbm.
131 **Source code:** :source:`Lib/dbm/gnu.py`
135 This module is quite similar to the :mod:`dbm` module, but uses the GNU library
137 file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible.
139 The :mod:`dbm.gnu` module provides an interface to the GNU DBM library.
140 ``dbm.gnu.gdbm`` objects behave like mappings (dictionaries), except that keys and
148 Raised on :mod:`dbm.gnu`-specific errors, such as I/O errors. :exc:`KeyError` is
236 :mod:`dbm.ndbm` --- Interface based on ndbm
239 .. module:: dbm.ndbm
243 **Source code:** :source:`Lib/dbm/ndbm.py`
247 The :mod:`dbm.ndbm` module provides an interface to the Unix "(n)dbm" library.
249 always stored as bytes. Printing a ``dbm`` object doesn't print the keys and
258 Raised on :mod:`dbm.ndbm`-specific errors, such as I/O errors. :exc:`KeyError` is raised
269 Open a dbm database and return a ``ndbm`` object. The *filename* argument is the
302 :mod:`dbm.dumb` --- Portable DBM implementation
305 .. module:: dbm.dumb
308 **Source code:** :source:`Lib/dbm/dumb.py`
314 The :mod:`dbm.dumb` module is intended as a last resort fallback for the
315 :mod:`dbm` module when a more robust module is not available. The :mod:`dbm.dumb`
321 The :mod:`dbm.dumb` module provides a persistent dictionary-like interface which
322 is written entirely in Python. Unlike other modules such as :mod:`dbm.gnu` no
331 Raised on :mod:`dbm.dumb`-specific errors, such as I/O errors. :exc:`KeyError` is