summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-04 09:14:36 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-04 09:14:36 (GMT)
commitd9e833c70a22558236fc863250870837d4ad8b16 (patch)
treeb9bb6ff8d06dcb05975f5281d48a55babbb8582a /Doc
parentda72231c9feeef6983f05dc963a69cf6f1c8de29 (diff)
downloadcpython-d9e833c70a22558236fc863250870837d4ad8b16.zip
cpython-d9e833c70a22558236fc863250870837d4ad8b16.tar.gz
cpython-d9e833c70a22558236fc863250870837d4ad8b16.tar.bz2
#6045: provide at least get() and setdefault() for all dbm modules.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dbm.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index 6926ca6..67c0025 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -61,10 +61,15 @@ the Oracle Berkeley DB.
modified by the prevailing umask).
-The object returned by :func:`.open` supports most of the same functionality as
+The object returned by :func:`.open` supports the same basic functionality as
dictionaries; keys and their corresponding values can be stored, retrieved, and
deleted, and the :keyword:`in` operator and the :meth:`keys` method are
-available. Key and values are always stored as bytes. This means that when
+available, as well as :meth:`get` and :meth:`setdefault`.
+
+.. versionchanged:: 3.2
+ :meth:`get` and :meth:`setdefault` are now available in all database modules.
+
+Key and values are always stored as bytes. This means that when
strings are used they are implicitly converted to the default encoding before
being stored.