*** /var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/ediffSLAFhp Thu Sep 4 23:52:32 2008 --- /Users/skip/src/python/py3k/Doc/library/dbm.rst Thu Sep 4 23:52:23 2008 *************** *** 252,257 **** --- 252,278 ---- + :mod:`dbm.sqlite` --- Interface based on sqlite3 + ------------------------------------------------ + + .. module:: dbm.sqlite + :synopsis: Portable implementation of the simple DBM interface. + + + The :mod:`dbm.sqlite` module provides a dict-like file interface similar to + the other modules in the dbm package, though the underlying file storage is + managed using the sqlite3 module and is thus portable across all platforms + which support the sqlite3 package. dbm.sqlite objects behave like mappings + (dictionaries), except that keys and values are always strings. Printing a + dbm object doesn't print the keys and values. + + .. function:: open(filename[, flag[, mode]]) + + Open a sqlite3 database and return a dbm object. The *filename* argument + is the name of the database file. The flag and mode arguments are + ignored. + + :mod:`dbm.dumb` --- Portable DBM implementation -----------------------------------------------