@@ -28,10 +28,11 @@ the Oracle Berkeley DB.
28
28
available --- :mod: `dbm.gnu `, :mod: `dbm.ndbm ` or :mod: `dbm.dumb ` --- should
29
29
be used to open a given file.
30
30
31
- Returns one of the following values: ``None `` if the file can't be opened
32
- because it's unreadable or doesn't exist; the empty string (``'' ``) if the
33
- file's format can't be guessed; or a string containing the required module
34
- name, such as ``'dbm.ndbm' `` or ``'dbm.gnu' ``.
31
+ Return one of the following values:
32
+
33
+ * ``None `` if the file can't be opened because it's unreadable or doesn't exist
34
+ * the empty string (``'' ``) if the file's format can't be guessed
35
+ * a string containing the required module name, such as ``'dbm.ndbm' `` or ``'dbm.gnu' ``
35
36
36
37
.. versionchanged :: 3.11
37
38
Accepts :term: `path-like object ` for filename.
@@ -74,13 +75,13 @@ the Oracle Berkeley DB.
74
75
modified by the prevailing umask).
75
76
76
77
77
- The object returned by :func: `. open ` supports the same basic functionality as
78
- dictionaries ; keys and their corresponding values can be stored, retrieved, and
79
- deleted, and the :keyword: `in ` operator and the :meth: `keys ` method are
80
- available, as well as :meth: `get ` and :meth: `setdefault `.
78
+ The object returned by :func: `open ` supports the same basic functionality as a
79
+ :class: ` dict ` ; keys and their corresponding values can be stored, retrieved, and
80
+ deleted, and the :keyword: `in ` operator and the :meth: `! keys ` method are
81
+ available, as well as :meth: `! get ` and :meth: `! setdefault `.
81
82
82
83
.. versionchanged :: 3.2
83
- :meth: `get ` and :meth: `setdefault ` are now available in all database modules.
84
+ :meth: `! get ` and :meth: `! setdefault ` are now available in all database modules.
84
85
85
86
.. versionchanged :: 3.8
86
87
Deleting a key from a read-only database raises database module specific error
@@ -89,7 +90,7 @@ available, as well as :meth:`get` and :meth:`setdefault`.
89
90
.. versionchanged :: 3.11
90
91
Accepts :term: `path-like object ` for file.
91
92
92
- Key and values are always stored as bytes. This means that when
93
+ Key and values are always stored as :class: ` bytes ` . This means that when
93
94
strings are used they are implicitly converted to the default encoding before
94
95
being stored.
95
96
0 commit comments