mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
[3.11] Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() (GH-114594) (#114596)
(cherry picked from commit 8710faeac2
)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
87958e6aa3
commit
7792d5af15
1 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ the Oracle Berkeley DB.
|
|||
* a string containing the required module name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'``
|
||||
|
||||
.. versionchanged:: 3.11
|
||||
Accepts :term:`path-like object` for filename.
|
||||
*filename* accepts a :term:`path-like object`.
|
||||
|
||||
.. Substitutions for the open() flag param docs;
|
||||
all submodules use the same text.
|
||||
|
@ -74,6 +74,9 @@ the Oracle Berkeley DB.
|
|||
database has to be created. It defaults to octal ``0o666`` (and will be
|
||||
modified by the prevailing umask).
|
||||
|
||||
.. versionchanged:: 3.11
|
||||
*file* accepts a :term:`path-like object`.
|
||||
|
||||
|
||||
The object returned by :func:`open` supports the same basic functionality as a
|
||||
:class:`dict`; keys and their corresponding values can be stored, retrieved, and
|
||||
|
@ -87,9 +90,6 @@ 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 :class:`bytes`. This means that when
|
||||
strings are used they are implicitly converted to the default encoding before
|
||||
being stored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue