dumbdbm

The dumbdbm module is a simple DBM-style database implemented in Python. It should only be used when no other DBM database modules are available.

open(filename [, flag [, mode]])

Opens the database file filename. Note that filename should not include a suffix such as .dat or .dir. The returned database object behaves like a dictionary, as described in the “Introduction” section earlier in this chapter.

error

Exception raised for database-related errors other than KeyError.

See Also

anydbm (p. 238), whichdb (p. 243)

Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.