]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141510: Complete What's New in Python 3.15 for frozendict (#145537)
authorVictor Stinner <vstinner@python.org>
Thu, 5 Mar 2026 16:44:58 +0000 (17:44 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2026 16:44:58 +0000 (17:44 +0100)
Mention updated stdlib modules and built-in functions.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/library/functions.rst
Doc/library/stdtypes.rst
Doc/whatsnew/3.15.rst

index d9a2eff667ebe171637e8b3272e736965b13e8f5..af53b57dc9d2a77b8325d4f6dc5e86d9b4db6112 100644 (file)
@@ -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, /)
 
index 76a4367dd2dcd57bc4927c7027196fa45d8ff358..c930b876b3ccbfb127c2520ac5d5b78fd09e77f8 100644 (file)
@@ -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, /)
 
index fff2168be726047bac2f3c5b77e6b835a86847a4..0b5902bb013436d8208275676315190a2558424c 100644 (file)
@@ -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` and :meth:`str.maketrans` accept :class:`!frozendict` for *dict*.
+
 .. seealso:: :pep:`814` for the full specification and rationale.
 
 (Contributed by Victor Stinner and Donghee Na in :gh:`141510`.)