Skip to content

[3.9] gh-92417: json docs: dict is ordered on all supported Python versions (GH-92422) #92466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Doc/library/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------
Expand Down