PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Data Persistence
copyreg
dbm
dbm.dumb
dbm.gnu
dbm.ndbm
dbm.sqlite3
marshal
pickle
shelve
sqlite3
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Data Persistence
copyreg
dbm
dumb
gnu
ndbm
sqlite3
marshal
pickle
shelve
sqlite3
All modules
open
dbm.gnu
function
not Android
not iOS
not WASI
open(filename, flag='r', mode=0o666, /)
Open a GDBM database and return a gdbm object.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.2, 3.11, 3.13
3.2:
Added the get() and setdefault() methods.
3.11:
filename accepts a path-like object.
3.13:
Added the clear() method.
0 Examples
No examples for dbm.gnu/open.
Log in
to add an example
See Also
No see-alsos for
dbm.gnu/open
Log in
to add a see-also
0 Notes
No notes for
open
Log in
to add a note