mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] gh-92417: json
docs: dict
is ordered on all supported Python versions (GH-92422) (GH-92464)
(cherry picked from commit bc098cfdb7
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
This commit is contained in:
parent
c35da32cde
commit
dfad113715
1 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
-----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue