rest25/library/dbm.rst => rest262/library/dbm.rst
n1- 
2:mod:`dbm` --- Simple "database" interface
3==========================================
4
5.. module:: dbm
6   :platform: Unix
7   :synopsis: The standard "database" interface, based on ndbm.
8
n8+.. note::
9+   The :mod:`dbm` module has been renamed to :mod:`dbm.ndbm` in Python 3.0.  The
10+   :term:`2to3` tool will automatically adapt imports when converting your
11+   sources to 3.0.
9
n13+ 
10-The :mod:`dbm` module provides an interface to the Unix (``n``)``dbm`` library.
14+The :mod:`dbm` module provides an interface to the Unix "(n)dbm" library.  Dbm
11-Dbm objects behave like mappings (dictionaries), except that keys and values are
15+objects behave like mappings (dictionaries), except that keys and values are
12always strings. Printing a dbm object doesn't print the keys and values, and the
13:meth:`items` and :meth:`values` methods are not supported.
14
15This module can be used with the "classic" ndbm interface, the BSD DB
16compatibility interface, or the GNU GDBM compatibility interface. On Unix, the
17:program:`configure` script will attempt to locate the appropriate header file
18to simplify building this module.
19
52   | ``'c'`` | Open database for reading and writing,    |
53   |         | creating it if it doesn't exist           |
54   +---------+-------------------------------------------+
55   | ``'n'`` | Always create a new, empty database, open |
56   |         | for reading and writing                   |
57   +---------+-------------------------------------------+
58
59   The optional *mode* argument is the Unix mode of the file, used only when the
t60-   database has to be created.  It defaults to octal ``0666``.
t64+   database has to be created.  It defaults to octal ``0666`` (and will be
65+   modified by the prevailing umask).
61
62
63.. seealso::
64
65   Module :mod:`anydbm`
66      Generic interface to ``dbm``\ -style databases.
67
68   Module :mod:`gdbm`
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op