summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-07-06 09:21:58 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-07-06 09:21:58 (GMT)
commit0122ae9ac83afcad234aac80f77f90afabe342ea (patch)
treed0f671e0007eb5b1a785108aa37db5619b25e44d /Doc
parent9862b5194d5aa8f788d3fd38a3951d7d25d91352 (diff)
downloadcpython-0122ae9ac83afcad234aac80f77f90afabe342ea.zip
cpython-0122ae9ac83afcad234aac80f77f90afabe342ea.tar.gz
cpython-0122ae9ac83afcad234aac80f77f90afabe342ea.tar.bz2
Issue #21708: Deprecated dbm.dumb behavior that differs from common dbm
behavior: creating a database in 'r' and 'w' modes and modifying a database in 'r' 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
--------------------------