💾 Archived View for tris.fyi › pydoc › dbm.ndbm captured on 2022-04-28 at 17:42:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

dbm

dbm.ndbm

Provide the _dbm module as a dbm submodule.

Classes

error

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
characters_written = <attribute 'characters_written' of 'OSError' objects>
errno = <member 'errno' of 'OSError' objects>
  POSIX exception code
filename = <member 'filename' of 'OSError' objects>
  exception filename
filename2 = <member 'filename2' of 'OSError' objects>
  second exception filename
strerror = <member 'strerror' of 'OSError' objects>
  exception strerror

Functions

open

open(filename, flags='r', mode=438, /)

  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).

Other members

library = 'GNU gdbm'