[Python-checkins] [3.10] gh-92417: `json` docs: `dict` is ordered on all supported Python versions (GH-92422) (GH-92465)

miss-islington webhook-mailer at python.org
Sun May 8 11:30:22 EDT 2022


https://github.com/python/cpython/commit/2164b5bad76663dcd1639a4ab5be5a7220ea9b6e
commit: 2164b5bad76663dcd1639a4ab5be5a7220ea9b6e
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-08T08:30:18-07:00
summary:

[3.10] gh-92417: `json` docs: `dict` is ordered on all supported Python versions (GH-92422) (GH-92465)



(cherry picked from commit bc098cfdb756f207d8fa84793e8ad91a2f263efb)


Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>

Automerge-Triggered-By: GH:serhiy-storchaka

files:
M Doc/library/json.rst

diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 1810e04cc8349..608e70df5b14c 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -125,13 +125,6 @@ See :ref:`json-commandline` for detailed documentation.
    This module's encoders and decoders preserve input and output order by
    default.  Order is only lost if the underlying containers are unordered.
 
-   Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so
-   inputs and outputs were typically scrambled unless
-   :class:`collections.OrderedDict` was specifically requested.  Starting
-   with Python 3.7, the regular :class:`dict` became order preserving, so
-   it is no longer necessary to specify :class:`collections.OrderedDict` for
-   JSON generation and parsing.
-
 
 Basic Usage
 -----------



More information about the Python-checkins mailing list