Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
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
7 changes: 7 additions & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ For example::
>>> a == b
True

The following standard library modules have been updated to accept
:class:`frozendict`: :mod:`copy`, :mod:`decimal`, :mod:`json`, :mod:`marshal`,
:mod:`pickle`, :mod:`pprint` and :mod:`xml.etree.ElementTree`.

: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.

(Contributed by Victor Stinner and Donghee Na in :gh:`141510`.)
Expand Down
Loading