dbm – Simple database interface¶
| Purpose: | Provides an interface to the Unix (n)dbm library. |
|---|---|
| Python Version: | 1.4 and later |
The dbm module provides an interface to one of the dbm libraries, depending on how the module was configured during compilation.
Examples¶
The library attribute identifies the library being used, by name.
import dbm
print dbm.library
Of course, your results will depend on what library configure was able to find when the interpreter was built.
$ python dbm_library.py
GNU gdbm
The open() function follows the same semantics as the anydbm module.
