https://github.com/python/cpython/commit/0bfe0f16920d0dcf17d592ed2286724f78efc333
commit: 0bfe0f16920d0dcf17d592ed2286724f78efc333
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-19T06:56:56+03:00
summary:

[3.15] gh-141510: Document frozendict support in json (gh-155929) (#155933)

Co-authored-by: Sanghun Lee <[email protected]>

files:
M Doc/library/json.rst

diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 383ccad9df041b..5e8c452a5ab9a1 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -486,7 +486,7 @@ Encoders and Decoders
    +----------------------------------------+---------------+
    | Python                                 | JSON          |
    +========================================+===============+
-   | dict                                   | object        |
+   | dict, frozendict                       | object        |
    +----------------------------------------+---------------+
    | list, tuple                            | array         |
    +----------------------------------------+---------------+
@@ -504,6 +504,9 @@ Encoders and Decoders
    .. versionchanged:: 3.4
       Added support for int- and float-derived Enum classes.
 
+   .. versionchanged:: 3.15
+      Added support for :class:`frozendict`.
+
    To extend this to recognize other objects, subclass and implement a
    :meth:`~JSONEncoder.default` method with another method that returns a 
serializable object
    for ``o`` if possible, otherwise it should call the superclass 
implementation

_______________________________________________
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