summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dbm.rst4
-rw-r--r--Doc/whatsnew/3.6.rst5
2 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index 2a1db91..32e80b2 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -351,6 +351,10 @@ The module defines the following:
:func:`.open` always creates a new database when the flag has the value
``'n'``.
+ .. deprecated-removed:: 3.6 3.8
+ Creating database in ``'r'`` and ``'w'`` modes. Modifying database in
+ ``'r'`` mode.
+
In addition to the methods provided by the
:class:`collections.abc.MutableMapping` class, :class:`dumbdbm` objects
provide the following methods:
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index 1550eef..e13800c 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -604,6 +604,11 @@ Deprecated features
``__package__`` are not defined now raises an :exc:`ImportWarning`.
(Contributed by Rose Ames in :issue:`25791`.)
+* Unlike to other :mod:`dbm` implementations, the :mod:`dbm.dumb` module
+ creates database in ``'r'`` and ``'w'`` modes if it doesn't exist and
+ allows modifying database in ``'r'`` mode. This behavior is now deprecated
+ and will be removed in 3.8.
+ (Contributed by Serhiy Storchaka in :issue:`21708`.)
Deprecated Python behavior
--------------------------