@@ -34,8 +34,8 @@ the Oracle Berkeley DB.
34
34
* the empty string (``'' ``) if the file's format can't be guessed
35
35
* a string containing the required module name, such as ``'dbm.ndbm' `` or ``'dbm.gnu' ``
36
36
37
- .. versionchanged :: 3.11
38
- Accepts :term: `path-like object ` for filename .
37
+ .. versionchanged :: 3.11
38
+ * filename * accepts a :term: `path-like object `.
39
39
40
40
.. Substitutions for the open() flag param docs;
41
41
all submodules use the same text.
@@ -78,6 +78,9 @@ the Oracle Berkeley DB.
78
78
database has to be created. It defaults to octal ``0o666 `` (and will be
79
79
modified by the prevailing umask).
80
80
81
+ .. versionchanged :: 3.11
82
+ *file * accepts a :term: `path-like object `.
83
+
81
84
82
85
The object returned by :func: `open ` supports the same basic functionality as a
83
86
:class: `dict `; keys and their corresponding values can be stored, retrieved, and
@@ -91,9 +94,6 @@ available, as well as :meth:`!get` and :meth:`!setdefault`.
91
94
Deleting a key from a read-only database raises database module specific error
92
95
instead of :exc: `KeyError `.
93
96
94
- .. versionchanged :: 3.11
95
- Accepts :term: `path-like object ` for file.
96
-
97
97
Key and values are always stored as :class: `bytes `. This means that when
98
98
strings are used they are implicitly converted to the default encoding before
99
99
being stored.
0 commit comments