Skip to content

Commit 4c23b64

Browse files
Updated documentation to correct notes indentation
1 parent b96480b commit 4c23b64

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Doc/library/dbm.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ or any other SQLite browser, including the SQLite CLI.
198198
used on disk, this method will reorganize the database; otherwise, deleted file
199199
space will be kept and reused as new (key, value) pairs are added.
200200

201-
.. note::
202-
While reorganizing, as much as twice the size of the original database is required
203-
in free disk space.
201+
.. note::
202+
While reorganizing, as much as two times the size of the original database is required
203+
in free disk space. However, be aware that this factor changes for each :mod:`dbm` submodule.
204204

205205

206206
:mod:`dbm.gnu` --- GNU database manager
@@ -300,6 +300,10 @@ functionality like crash tolerance.
300300
reorganization; otherwise, deleted file space will be kept and reused as new
301301
(key, value) pairs are added.
302302

303+
.. note::
304+
While reorganizing, as much as one time the size of the original database is required
305+
in free disk space. However, be aware that this factor changes for each :mod:`dbm` submodule.
306+
303307
.. method:: gdbm.sync()
304308

305309
When the database has been opened in fast mode, this method forces any
@@ -485,3 +489,7 @@ The :mod:`!dbm.dumb` module defines the following:
485489
If you have carried out a lot of deletions and would like to shrink the space
486490
used on disk, this method will reorganize the database; otherwise, deleted file
487491
space will not be reused.
492+
493+
.. note::
494+
While reorganizing, no additional free disk space is required. However, be aware
495+
that this factor changes for each :mod:`dbm` submodule.

0 commit comments

Comments
 (0)