@@ -33,6 +33,8 @@ the Oracle Berkeley DB.
3333 file's format can't be guessed; or a string containing the required module
3434 name, such as ``'dbm.ndbm' `` or ``'dbm.gnu' ``.
3535
36+ .. versionchanged :: 3.11
37+ Accepts :term: `path-like object ` for filename.
3638
3739.. function :: open(file, flag='r', mode=0o666)
3840
@@ -77,6 +79,9 @@ available, as well as :meth:`get` and :meth:`setdefault`.
7779 Deleting a key from a read-only database raises database module specific error
7880 instead of :exc: `KeyError `.
7981
82+ .. versionchanged :: 3.11
83+ Accepts :term: `path-like object ` for file.
84+
8085Key and values are always stored as bytes. This means that when
8186strings are used they are implicitly converted to the default encoding before
8287being stored.
@@ -202,6 +207,9 @@ supported.
202207 In addition to the dictionary-like methods, ``gdbm `` objects have the
203208 following methods:
204209
210+ .. versionchanged :: 3.11
211+ Accepts :term: `path-like object ` for filename.
212+
205213 .. method :: gdbm.firstkey()
206214
207215 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.
298306 In addition to the dictionary-like methods, ``ndbm `` objects
299307 provide the following method:
300308
309+ .. versionchanged :: 3.11
310+ Accepts :term: `path-like object ` for filename.
311+
301312 .. method :: ndbm.close()
302313
303314 Close the ``ndbm `` database.
@@ -379,6 +390,9 @@ The module defines the following:
379390 flags ``'r' `` and ``'w' `` no longer creates a database if it does not
380391 exist.
381392
393+ .. versionchanged :: 3.11
394+ Accepts :term: `path-like object ` for filename.
395+
382396 In addition to the methods provided by the
383397 :class: `collections.abc.MutableMapping ` class, :class: `dumbdbm ` objects
384398 provide the following methods:
0 commit comments