summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2024-02-14 18:03:20 (GMT)
committerGitHub <noreply@github.com>2024-02-14 18:03:20 (GMT)
commit49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0 (patch)
treec2f5097bb2714d46be2e7a3e37d61efd4d652fc9
parent17773fcb863d5aef299487b07207c2ced8e9477e (diff)
downloadcpython-49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0.zip
cpython-49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0.tar.gz
cpython-49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0.tar.bz2
Docs: spell out sentence about ndbm/gdbm file formats (#115470)
-rw-r--r--Doc/library/dbm.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index b4f83d4..227b55c 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -61,10 +61,6 @@ the Oracle Berkeley DB.
The Unix file access mode of the file (default: octal ``0o666``),
used only when the database has to be created.
-.. |incompat_note| replace::
- The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
- and can not be used interchangeably.
-
.. function:: open(file, flag='r', mode=0o666)
Open a database and return the corresponding database object.
@@ -205,7 +201,10 @@ 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.
-.. note:: |incompat_note|
+.. note::
+
+ The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
+ and can not be used interchangeably.
.. exception:: error
@@ -314,7 +313,10 @@ The :mod:`dbm.ndbm` module provides an interface to the
This module can be used with the "classic" NDBM interface or the
:abbr:`GDBM (GNU dbm)` compatibility interface.
-.. note:: |incompat_note|
+.. note::
+
+ The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
+ and can not be used interchangeably.
.. warning::