Skip to content

Commit 93d64fc

Browse files
committed
Remove OrderedDict from json's document
1 parent c95e6e4 commit 93d64fc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Doc/library/json.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,8 @@ Basic Usage
231231
result of any object literal decoded with an ordered list of pairs. The
232232
return value of *object_pairs_hook* will be used instead of the
233233
:class:`dict`. This feature can be used to implement custom decoders that
234-
rely on the order that the key and value pairs are decoded (for example,
235-
:func:`collections.OrderedDict` will remember the order of insertion). If
236-
*object_hook* is also defined, the *object_pairs_hook* takes priority.
234+
rely on the order that the key and value pairs are decoded. If *object_hook*
235+
is also defined, the *object_pairs_hook* takes priority.
237236

238237
.. versionchanged:: 3.1
239238
Added support for *object_pairs_hook*.
@@ -326,9 +325,8 @@ Encoders and Decoders
326325
JSON object decoded with an ordered list of pairs. The return value of
327326
*object_pairs_hook* will be used instead of the :class:`dict`. This
328327
feature can be used to implement custom decoders that rely on the order
329-
that the key and value pairs are decoded (for example,
330-
:func:`collections.OrderedDict` will remember the order of insertion). If
331-
*object_hook* is also defined, the *object_pairs_hook* takes priority.
328+
that the key and value pairs are decoded. If *object_hook* is also defined,
329+
the *object_pairs_hook* takes priority.
332330

333331
.. versionchanged:: 3.1
334332
Added support for *object_pairs_hook*.

0 commit comments

Comments
 (0)