From 508a6020eac448caae34241ca4dcf9e4b871c452 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 26 Jan 2024 13:38:40 +0100 Subject: [PATCH] Docs: amend note about incompatible dbm file formats --- Doc/library/dbm.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst index bc5bb0cec0cef7..be6012bb2a1453 100644 --- a/Doc/library/dbm.rst +++ b/Doc/library/dbm.rst @@ -156,13 +156,12 @@ The individual submodules are described in the following sections. The :mod:`dbm.gnu` module provides an interface to the :abbr:`GDBM (GNU dbm)` library, similar to the :mod:`dbm.ndbm` module, but with additional functionality like crash tolerance. +|incompat_note| :class:`!gdbm` objects behave similar to :term:`mappings `, except that keys and values are always converted to :class:`bytes` before storing, and the :meth:`!items` and :meth:`!values` methods are not supported. -.. note:: |incompat_note| - .. exception:: error Raised on :mod:`dbm.gnu`-specific errors, such as I/O errors. :exc:`KeyError` is @@ -274,8 +273,7 @@ and the :meth:`!items` and :meth:`!values` methods are not supported. This module can be used with the "classic" NDBM interface or the :abbr:`GDBM (GNU dbm)` compatibility interface. - -.. note:: |incompat_note| +|incompat_note| .. warning::