Staging: this is not the live site, pydocs.org.
dbm.gnu
not Androidnot iOSnot WASI
The dbm.gnu module provides an interface to the GDBM library, similar to the dbm.ndbm module, but with additional functionality like crash tolerance.
© Python Software Foundation. PSF License Version 2 · Official docs ↗
Symbols in dbm.gnu
e
- error
- Raised on dbm.gnu-specific errors, such as I/O errors.
g
- gdbm.firstkey
- It’s possible to loop over every key in the database using this method and the nextkey() method.
- gdbm.nextkey
- Returns the key that follows key in the traversal.
- gdbm.reorganize
- If you have carried out a lot of deletions and would like to shrink the space used by the GDBM file, this routine will reorganize the database.
- gdbm.sync
- When the database has been opened in fast mode, this method forces any unwritten data to be written to the disk.
o
- open
- Open a GDBM database and return a gdbm object.
- open_flags
- A string of characters the flag parameter of open() supports.