diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index c683d9991eb5abe..00ef7ff126ba08a 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -436,6 +436,12 @@ Mappings additional examples of mapping types, as does the :mod:`collections` module. + .. versionchanged:: 3.7 + The dictionary order is guaranteed to be the same as the insertion order. + Note that updating a key does not affect the order. Keys added after + deletion are inserted at the end. This behavior was an implementation + detail of CPython from 3.6. + Callable types .. index:: object: callable diff --git a/Misc/ACKS b/Misc/ACKS index 37cf7af0c2ec517..fd212d0fa9f9355 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1235,6 +1235,7 @@ Jeffrey Ollie Adam Olsen Bryan Olson Grant Olson +Furkan Onder Koray Oner Piet van Oostrum Tomas Oppelstrup diff --git a/Misc/NEWS.d/next/Documentation/2020-03-16-09-15-24.bpo-39879.jGDQ7N.rst b/Misc/NEWS.d/next/Documentation/2020-03-16-09-15-24.bpo-39879.jGDQ7N.rst new file mode 100644 index 000000000000000..65fe4b3314c56f6 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2020-03-16-09-15-24.bpo-39879.jGDQ7N.rst @@ -0,0 +1,2 @@ +Update language reference to specify that dict is insertion-ordered. +Patch by Furkan Önder. \ No newline at end of file