@@ -205,10 +205,6 @@ The :mod:`dbm.gnu` module provides an interface to the :abbr:`GDBM (GNU dbm)`
205
205
library, similar to the :mod: `dbm.ndbm ` module, but with additional
206
206
functionality like crash tolerance.
207
207
208
- :class: `!gdbm ` objects behave similar to :term: `mappings <mapping> `,
209
- except that keys and values are always converted to :class: `bytes ` before storing,
210
- and the :meth: `!items ` and :meth: `!values ` methods are not supported.
211
-
212
208
.. note :: |incompat_note|
213
209
214
210
.. exception :: error
@@ -256,8 +252,9 @@ and the :meth:`!items` and :meth:`!values` methods are not supported.
256
252
257
253
A string of characters the *flag * parameter of :meth: `~dbm.gnu.open ` supports.
258
254
259
- In addition to the dictionary-like methods, :class: `gdbm ` objects have the
260
- following methods and attributes:
255
+ :class: `!gdbm ` objects behave similar to :term: `mappings <mapping> `,
256
+ but :meth: `!items ` and :meth: `!values ` methods are not supported.
257
+ The following methods are also provided:
261
258
262
259
.. method :: gdbm.firstkey()
263
260
@@ -314,10 +311,6 @@ and the :meth:`!items` and :meth:`!values` methods are not supported.
314
311
315
312
The :mod: `dbm.ndbm ` module provides an interface to the
316
313
:abbr: `NDBM ( New Database Manager ) ` library.
317
- :class: `!ndbm ` objects behave similar to :term: `mappings <mapping> `,
318
- except that keys and values are always stored as :class: `bytes `,
319
- and the :meth: `!items ` and :meth: `!values ` methods are not supported.
320
-
321
314
This module can be used with the "classic" NDBM interface or the
322
315
:abbr: `GDBM ( GNU dbm ) ` compatibility interface.
323
316
@@ -359,8 +352,9 @@ This module can be used with the "classic" NDBM interface or the
359
352
:param int mode:
360
353
|mode_param_doc |
361
354
362
- In addition to the dictionary-like methods, :class: `!ndbm ` objects
363
- provide the following method:
355
+ :class: `!ndbm ` objects behave similar to :term: `mappings <mapping> `,
356
+ but :meth: `!items ` and :meth: `!values ` methods are not supported.
357
+ The following methods are also provided:
364
358
365
359
.. versionchanged :: 3.11
366
360
Accepts :term: `path-like object ` for filename.
@@ -399,8 +393,6 @@ The :mod:`dbm.dumb` module provides a persistent :class:`dict`-like
399
393
interface which is written entirely in Python.
400
394
Unlike other :mod: `dbm ` backends, such as :mod: `dbm.gnu `, no
401
395
external library is required.
402
- As with other :mod: `dbm ` backends,
403
- the keys and values are always stored as :class: `bytes `.
404
396
405
397
The :mod: `!dbm.dumb ` module defines the following:
406
398
0 commit comments