From 823616bdc22856b5df918a443051ec6ec2e9073c Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 5 Sep 2016 14:50:11 -0700 Subject: Issue #24254: Preserve class attribute definition order. --- Doc/library/types.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Doc/library/types.rst') diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 118bc4c29d..5eb84c1886 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -53,8 +53,20 @@ Dynamic Type Creation in *kwds* argument with any ``'metaclass'`` entry removed. If no *kwds* argument is passed in, this will be an empty dict. + .. impl-detail:: + + CPython uses :class:`collections.OrderedDict` for the default + namespace. + .. versionadded:: 3.3 + .. versionchanged:: 3.6 + + The default value for the ``namespace`` element of the returned + tuple has changed from :func:`dict`. Now an insertion-order- + preserving mapping is used when the metaclass does not have a + ``__prepare__`` method, + .. seealso:: :ref:`metaclasses` -- cgit v1.2.1 From 761928cf31626534ebb81a6326c61b42050ef388 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 8 Sep 2016 15:11:11 -0700 Subject: Issue #24254: Drop cls.__definition_order__. --- Doc/library/types.rst | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Doc/library/types.rst') diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 5eb84c1886..898b95a940 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -53,19 +53,13 @@ Dynamic Type Creation in *kwds* argument with any ``'metaclass'`` entry removed. If no *kwds* argument is passed in, this will be an empty dict. - .. impl-detail:: - - CPython uses :class:`collections.OrderedDict` for the default - namespace. - .. versionadded:: 3.3 .. versionchanged:: 3.6 The default value for the ``namespace`` element of the returned - tuple has changed from :func:`dict`. Now an insertion-order- - preserving mapping is used when the metaclass does not have a - ``__prepare__`` method, + tuple has changed. Now an insertion-order-preserving mapping is + used when the metaclass does not have a ``__prepare__`` method, .. seealso:: -- cgit v1.2.1 From 69c7c787341074d465e03a8c0e55ffe9cc1ce8c2 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 15 Dec 2016 17:36:05 -0500 Subject: Issue #28091: Document PEP 525 & PEP 530. Patch by Eric Appelt. (grafted from 78c8f450b84ca1864123ec487d363eb151f61a4a) --- Doc/library/types.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Doc/library/types.rst') diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 898b95a940..0c5619c713 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -104,6 +104,14 @@ Standard names are defined for the following types: .. versionadded:: 3.5 +.. data:: AsyncGeneratorType + + The type of :term:`asynchronous generator`-iterator objects, created by + asynchronous generator functions. + + .. versionadded:: 3.6 + + .. data:: CodeType .. index:: builtin: compile -- cgit v1.2.1