summaryrefslogtreecommitdiffstats
path: root/Doc/reference/datamodel.rst
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2016-09-05 21:50:11 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2016-09-05 21:50:11 (GMT)
commit92a6c170e6897ee98c36a3a9087b1a7d3e054d2b (patch)
tree59cbc717ac59e802529bc3ad4e61de161b66ac68 /Doc/reference/datamodel.rst
parent45659861380a9cd9e41ea002d4de92519ffb3422 (diff)
downloadcpython-92a6c170e6897ee98c36a3a9087b1a7d3e054d2b.zip
cpython-92a6c170e6897ee98c36a3a9087b1a7d3e054d2b.tar.gz
cpython-92a6c170e6897ee98c36a3a9087b1a7d3e054d2b.tar.bz2
Issue #24254: Preserve class attribute definition order.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r--Doc/reference/datamodel.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index e7328ab..00785ed 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1750,7 +1750,14 @@ as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the
additional keyword arguments, if any, come from the class definition).
If the metaclass has no ``__prepare__`` attribute, then the class namespace
-is initialised as an empty :func:`dict` instance.
+is initialised as an empty ordered mapping.
+
+.. impl-detail::
+
+ In CPython the default is :class:`collections.OrderedDict`.
+
+.. versionchanged:: 3.6
+ Defaults to :class:`collections.OrderedDict` instead of :func:`dict`.
.. seealso::