• Home
  • Raw
  • Download

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'``.
94 import dbm
97 with dbm.open('cache', 'c') as db:
128 :mod:`dbm.gnu` --- GNU's reinterpretation of dbm
131 .. module:: dbm.gnu
133 :synopsis: GNU's reinterpretation of dbm.
135 **Source code:** :source:`Lib/dbm/gnu.py`
139 This module is quite similar to the :mod:`dbm` module, but uses the GNU library
141 file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible.
143 The :mod:`dbm.gnu` module provides an interface to the GNU DBM library.
144 ``dbm.gnu.gdbm`` objects behave like mappings (dictionaries), except that keys and
152 Raised on :mod:`dbm.gnu`-specific errors, such as I/O errors. :exc:`KeyError` is
240 :mod:`dbm.ndbm` --- Interface based on ndbm
243 .. module:: dbm.ndbm
247 **Source code:** :source:`Lib/dbm/ndbm.py`
251 The :mod:`dbm.ndbm` module provides an interface to the Unix "(n)dbm" library.
253 always stored as bytes. Printing a ``dbm`` object doesn't print the keys and
262 Raised on :mod:`dbm.ndbm`-specific errors, such as I/O errors. :exc:`KeyError` is raised
273 Open a dbm database and return a ``ndbm`` object. The *filename* argument is the
306 :mod:`dbm.dumb` --- Portable DBM implementation
309 .. module:: dbm.dumb
312 **Source code:** :source:`Lib/dbm/dumb.py`
318 The :mod:`dbm.dumb` module is intended as a last resort fallback for the
319 :mod:`dbm` module when a more robust module is not available. The :mod:`dbm.dumb`
325 The :mod:`dbm.dumb` module provides a persistent dictionary-like interface which
326 is written entirely in Python. Unlike other modules such as :mod:`dbm.gnu` no
335 Raised on :mod:`dbm.dumb`-specific errors, such as I/O errors. :exc:`KeyError` is