Open the database file filename and return a corresponding
object. The flag argument, used to control how the database is
opened in the other DBM implementations, is ignored in
dumbdbm; the database is always opened for update, and will
be created if it does not exist.
The optional mode argument is the Unix mode of the file, used
only when the database has to be created. It defaults to octal
0666 (and will be modified by the prevailing umask).
Changed in version 2.2:
The mode argument was ignored in earlier
versions.