GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.15] gh-141510: Document frozendict support in json (gh-155929) (#1… · python/cpython@0bfe0f1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Doc/library
    • json.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Doc/library/json.rst‎

Copy file name to clipboardExpand all lines: Doc/library/json.rst
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ Encoders and Decoders
486486
+----------------------------------------+---------------+
487487
| Python | JSON |
488488
+========================================+===============+
489-
| dict | object |
489+
| dict, frozendict | object |
490490
+----------------------------------------+---------------+
491491
| list, tuple | array |
492492
+----------------------------------------+---------------+
@@ -504,6 +504,9 @@ Encoders and Decoders
504504
.. versionchanged:: 3.4
505505
Added support for int- and float-derived Enum classes.
506506

507+
.. versionchanged:: 3.15
508+
Added support for :class:`frozendict`.
509+
507510
To extend this to recognize other objects, subclass and implement a
508511
:meth:`~JSONEncoder.default` method with another method that returns a serializable object
509512
for ``o`` if possible, otherwise it should call the superclass implementation

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.