PyDocs

Nav

Data Persistence

open

dbm.ndbm

functionnot Androidnot iOSnot WASI
  • open(filename, flag='r', mode=0o666, /)
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).
Changed in 3.2, 3.11, 3.13
  • 3.2: Added the get() and setdefault() methods.
  • 3.11: Accepts path-like object for filename.
  • 3.13: Added the clear() method.
0 Examples
No examples for dbm.ndbm/open.
See Also
No see-alsos for dbm.ndbm/open
0 Notes
No notes for open