5.4.2 e32dbm Objects

The e32dbm objects returned by the open function support most of the standard dictionary methods. The supported dictionary methods are:

These work the same way as the corresponding methods in a normal dictionary.

In addition, e32dbm objects have the following methods:

close( )
Closes the database. In fast mode, commits all pending updates to disk. close raises an exception if called on a database that is not open.

reorganize( )
Reorganizes the database. Reorganization calls compact on the underlying e32db database file, which reclaims unused space in the file. Reorganizing the database is recommended after several updates.

sync( )
In fast mode, commits all pending updates to disk.

See About this document... for information on suggesting changes.