Return a database object. filename The filename to open. flags How to open the file. "r" for reading, "w" for writing, etc. mode If creating a new file, the mode bits for the new file (e.g. os.O_RDWR).
dbm.ndbm/open
open