Skip to content

Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() #114594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Doc/library/dbm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ the Oracle Berkeley DB.
* the empty string (``''``) if the file's format can't be guessed
* a string containing the required module name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'``

.. versionchanged:: 3.11
Accepts :term:`path-like object` for filename.
.. versionchanged:: 3.11
*filename* accepts a :term:`path-like object`.

.. Substitutions for the open() flag param docs;
all submodules use the same text.
Expand Down Expand Up @@ -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
Expand All @@ -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.
Expand Down