@@ -160,10 +160,6 @@ The :mod:`dbm.gnu` module provides an interface to the :abbr:`GDBM (GNU dbm)`
160
160
library, similar to the :mod: `dbm.ndbm ` module, but with additional
161
161
functionality like crash tolerance.
162
162
163
- :class: `!gdbm ` objects behave similar to :term: `mappings <mapping> `,
164
- except that keys and values are always converted to :class: `bytes ` before storing,
165
- and the :meth: `!items ` and :meth: `!values ` methods are not supported.
166
-
167
163
.. note :: |incompat_note|
168
164
169
165
.. exception :: error
@@ -211,8 +207,9 @@ and the :meth:`!items` and :meth:`!values` methods are not supported.
211
207
212
208
A string of characters the *flag * parameter of :meth: `~dbm.gnu.open ` supports.
213
209
214
- In addition to the dictionary-like methods, :class: `gdbm ` objects have the
215
- following methods and attributes:
210
+ :class: `!gdbm ` objects behave similar to :term: `mappings <mapping> `,
211
+ but :meth: `!items ` and :meth: `!values ` methods are not supported.
212
+ The following methods are also provided:
216
213
217
214
.. method :: gdbm.firstkey()
218
215
@@ -263,10 +260,6 @@ and the :meth:`!items` and :meth:`!values` methods are not supported.
263
260
264
261
The :mod: `dbm.ndbm ` module provides an interface to the
265
262
:abbr: `NDBM ( New Database Manager ) ` library.
266
- :class: `!ndbm ` objects behave similar to :term: `mappings <mapping> `,
267
- except that keys and values are always stored as :class: `bytes `,
268
- and the :meth: `!items ` and :meth: `!values ` methods are not supported.
269
-
270
263
This module can be used with the "classic" NDBM interface or the
271
264
:abbr: `GDBM ( GNU dbm ) ` compatibility interface.
272
265
@@ -308,8 +301,9 @@ This module can be used with the "classic" NDBM interface or the
308
301
:param int mode:
309
302
|mode_param_doc |
310
303
311
- In addition to the dictionary-like methods, :class: `!ndbm ` objects
312
- provide the following method:
304
+ :class: `!ndbm ` objects behave similar to :term: `mappings <mapping> `,
305
+ but :meth: `!items ` and :meth: `!values ` methods are not supported.
306
+ The following methods are also provided:
313
307
314
308
.. versionchanged :: 3.11
315
309
Accepts :term: `path-like object ` for filename.
@@ -342,8 +336,6 @@ The :mod:`dbm.dumb` module provides a persistent :class:`dict`-like
342
336
interface which is written entirely in Python.
343
337
Unlike other :mod: `dbm ` backends, such as :mod: `dbm.gnu `, no
344
338
external library is required.
345
- As with other :mod: `dbm ` backends,
346
- the keys and values are always stored as :class: `bytes `.
347
339
348
340
The :mod: `!dbm.dumb ` module defines the following:
349
341
0 commit comments