rest25/library/anydbm.rst => rest262/library/anydbm.rst
n1- 
2:mod:`anydbm` --- Generic access to DBM-style databases
3=======================================================
4
5.. module:: anydbm
6   :synopsis: Generic interface to DBM-style database modules.
7
n7+ 
8+.. note::
9+   The :mod:`anydbm` module has been renamed to :mod:`dbm` in Python 3.0.  The
10+   :term:`2to3` tool will automatically adapt imports when converting your
11+   sources to 3.0.
8
9.. index::
10   module: dbhash
11   module: bsddb
12   module: gdbm
13   module: dbm
14   module: dumbdbm
15
36   The optional *mode* argument is the Unix mode of the file, used only when the
37   database has to be created.  It defaults to octal ``0666`` (and will be modified
38   by the prevailing umask).
39
40
41.. exception:: error
42
43   A tuple containing the exceptions that can be raised by each of the supported
t44-   modules, with a unique exception :exc:`anydbm.error` as the first item --- the
t48+   modules, with a unique exception also named :exc:`anydbm.error` as the first
45-   latter is used when :exc:`anydbm.error` is raised.
49+   item --- the latter is used when :exc:`anydbm.error` is raised.
46
47The object returned by :func:`open` supports most of the same functionality as
48dictionaries; keys and their corresponding values can be stored, retrieved, and
49deleted, and the :meth:`has_key` and :meth:`keys` methods are available.  Keys
50and values must always be strings.
51
52The following example records some hostnames and a corresponding title,  and
53then prints out the contents of the database::
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op