Lines Matching +full:unix +full:- +full:like
1 :mod:`dbm` --- Interfaces to Unix "databases"
5 :synopsis: Interfaces to various Unix "database" formats.
9 --------------
11 :mod:`dbm` is a generic interface to variants of the DBM database ---
13 slow-but-simple implementation in module :mod:`dbm.dumb` will be used. There
22 item --- the latter is used when :exc:`dbm.error` is raised.
28 available --- :mod:`dbm.gnu`, :mod:`dbm.ndbm` or :mod:`dbm.dumb` --- should
37 Accepts :term:`path-like object` for filename.
49 +---------+-------------------------------------------+
54 +---------+-------------------------------------------+
57 +---------+-------------------------------------------+
60 +---------+-------------------------------------------+
63 +---------+-------------------------------------------+
65 The optional *mode* argument is the Unix mode of the file, used only when the
79 Deleting a key from a read-only database raises database module specific error
83 Accepts :term:`path-like object` for file.
114 # Often-used methods of the dict interface work too.
117 # Storing a non-string key or value will raise an exception (most
127 Persistence module which stores non-string data.
133 :mod:`dbm.gnu` --- GNU's reinterpretation of dbm
134 ------------------------------------------------
137 :platform: Unix
142 --------------
149 ``dbm.gnu.gdbm`` objects behave like mappings (dictionaries), except that keys and
157 Raised on :mod:`dbm.gnu`-specific errors, such as I/O errors. :exc:`KeyError` is
158 raised for general mapping errors like specifying an incorrect key.
168 +---------+-------------------------------------------+
173 +---------+-------------------------------------------+
176 +---------+-------------------------------------------+
179 +---------+-------------------------------------------+
182 +---------+-------------------------------------------+
187 +---------+--------------------------------------------+
192 +---------+--------------------------------------------+
196 +---------+--------------------------------------------+
198 +---------+--------------------------------------------+
204 The optional *mode* argument is the Unix mode of the file, used only when the
207 In addition to the dictionary-like methods, ``gdbm`` objects have the
211 Accepts :term:`path-like object` for filename.
233 If you have carried out a lot of deletions and would like to shrink the space
248 :mod:`dbm.ndbm` --- Interface based on ndbm
249 -------------------------------------------
252 :platform: Unix
257 --------------
259 The :mod:`dbm.ndbm` module provides an interface to the Unix "(n)dbm" library.
260 Dbm objects behave like mappings (dictionaries), except that keys and values are
265 compatibility interface. On Unix, the :program:`configure` script will attempt
270 Raised on :mod:`dbm.ndbm`-specific errors, such as I/O errors. :exc:`KeyError` is raised
271 for general mapping errors like specifying an incorrect key.
286 +---------+-------------------------------------------+
291 +---------+-------------------------------------------+
294 +---------+-------------------------------------------+
297 +---------+-------------------------------------------+
300 +---------+-------------------------------------------+
302 The optional *mode* argument is the Unix mode of the file, used only when the
306 In addition to the dictionary-like methods, ``ndbm`` objects
310 Accepts :term:`path-like object` for filename.
317 :mod:`dbm.dumb` --- Portable DBM implementation
318 -----------------------------------------------
334 --------------
336 The :mod:`dbm.dumb` module provides a persistent dictionary-like interface which
346 Raised on :mod:`dbm.dumb`-specific errors, such as I/O errors. :exc:`KeyError` is
347 raised for general mapping errors like specifying an incorrect key.
359 +---------+-------------------------------------------+
364 +---------+-------------------------------------------+
367 +---------+-------------------------------------------+
370 +---------+-------------------------------------------+
373 +---------+-------------------------------------------+
375 The optional *mode* argument is the Unix mode of the file, used only when the
389 A database opened with flags ``'r'`` is now read-only. Opening with
394 Accepts :term:`path-like object` for filename.
402 Synchronize the on-disk directory and data files. This method is called