Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Mention also type() change
Document also str.maketrans() change.
  • Loading branch information
vstinner committed Mar 5, 2026
commit bce0fb62064ff1aa8fc01a1f489db54b42ab87eb
4 changes: 4 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,10 @@ are always available. They are listed here in alphabetical order.
Subclasses of :class:`!type` which don't override ``type.__new__`` may no
longer use the one-argument form to get the type of an object.

.. versionchanged:: next

*dict* can now be a :class:`frozendict`.

.. function:: vars()
vars(object, /)

Expand Down
4 changes: 4 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2385,6 +2385,10 @@ expression support in the :mod:`re` module).
the same position in *to*. If there is a third argument, it must be a string,
whose characters will be mapped to ``None`` in the result.

.. versionchanged:: next

*dict* can now be a :class:`frozendict`.


.. method:: str.partition(sep, /)

Expand Down
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ The following standard library modules have been updated to accept
:class:`frozendict`: :mod:`copy`, :mod:`decimal`, :mod:`json`, :mod:`pickle`,
:mod:`pprint` and :mod:`xml.etree.ElementTree`.

:func:`eval` and :func:`exec` now also accept :class:`frozendict` for
*globals*.
:func:`eval` and :func:`exec` accept :class:`frozendict` for *globals*, and
:func:`type` accept :class:`frozendict` for *dict*.

.. seealso:: :pep:`814` for the full specification and rationale.

Expand Down
Loading