summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dbm.rst14
-rw-r--r--Doc/library/shelve.rst3
2 files changed, 17 insertions, 0 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index ff01ae9..2be4993 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -33,6 +33,8 @@ the Oracle Berkeley DB.
file's format can't be guessed; or a string containing the required module
name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'``.
+.. versionchanged:: 3.11
+ Accepts :term:`path-like object` for filename.
.. function:: open(file, flag='r', mode=0o666)
@@ -77,6 +79,9 @@ available, as well as :meth:`get` and :meth:`setdefault`.
Deleting a key from a read-only database raises database module specific error
instead of :exc:`KeyError`.
+.. versionchanged:: 3.11
+ Accepts :term:`path-like object` for file.
+
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.
@@ -202,6 +207,9 @@ supported.
In addition to the dictionary-like methods, ``gdbm`` objects have the
following methods:
+ .. versionchanged:: 3.11
+ Accepts :term:`path-like object` for filename.
+
.. method:: gdbm.firstkey()
It's possible to loop over every key in the database using this method and the
@@ -298,6 +306,9 @@ to locate the appropriate header file to simplify building this module.
In addition to the dictionary-like methods, ``ndbm`` objects
provide the following method:
+ .. versionchanged:: 3.11
+ Accepts :term:`path-like object` for filename.
+
.. method:: ndbm.close()
Close the ``ndbm`` database.
@@ -379,6 +390,9 @@ The module defines the following:
flags ``'r'`` and ``'w'`` no longer creates a database if it does not
exist.
+ .. versionchanged:: 3.11
+ Accepts :term:`path-like object` for filename.
+
In addition to the methods provided by the
:class:`collections.abc.MutableMapping` class, :class:`dumbdbm` objects
provide the following methods:
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index 684f239..a50fc6f 100644
--- a/Doc/library/shelve.rst
+++ b/Doc/library/shelve.rst
@@ -45,6 +45,9 @@ lots of shared sub-objects. The keys are ordinary strings.
:data:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle
protocol.
+ .. versionchanged:: 3.11
+ Accepts :term:`path-like object` for filename.
+
.. note::
Do not rely on the shelf being closed automatically; always call