https://github.com/python/cpython/commit/37e421bb4330c184114aa6a23998dba9bd8d3bc5
commit: 37e421bb4330c184114aa6a23998dba9bd8d3bc5
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-05T17:44:58+01:00
summary:

gh-141510: Complete What's New in Python 3.15 for frozendict (#145537)

Mention updated stdlib modules and built-in functions.

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/library/functions.rst
M Doc/library/stdtypes.rst
M Doc/whatsnew/3.15.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index d9a2eff667ebe1..af53b57dc9d2a7 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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, /)
 
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 76a4367dd2dcd5..c930b876b3ccbf 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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, /)
 
diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index fff2168be72604..0b5902bb013436 100644
--- a/Doc/whatsnew/3.15.rst
+++ b/Doc/whatsnew/3.15.rst
@@ -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`.)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to