Skip to content

Commit fb2555e

Browse files
committed
Move obsoleteness note to introductory paragraph.
1 parent 3a9351f commit fb2555e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/c-api/dict.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,17 +483,15 @@ Ordered Dictionaries
483483
^^^^^^^^^^^^^^^^^^^^
484484
485485
Python's C API provides interface for :class:`collections.OrderedDict` from C.
486-
These APIs are mostly redundant; prefer ``PyDict*`` where possible.
486+
Since Python 3.7, dictionaries are ordered by default, so there is usually
487+
little need for these functions; prefer ``PyDict*`` where possible.
487488
488489
489490
.. c:var:: PyTypeObject PyODict_Type
490491
491492
Type object for ordered dictionaries. This is the same object as
492493
:class:`collections.OrderedDict` in the Python layer.
493494
494-
Since Python 3.7, dictionaries are ordered by default, so there is usually
495-
little need for this object.
496-
497495
498496
.. c:function:: int PyODict_Check(PyObject *od)
499497

0 commit comments

Comments
 (0)