summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.6.rst
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2016-09-09 18:22:14 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2016-09-09 18:22:14 (GMT)
commit68f4dd8b01b1d2b961f51cf07b785366ceb139e4 (patch)
treee13e40fd7e9b353a0c8a8261d197bbc1d8f3df94 /Doc/whatsnew/3.6.rst
parent6982a4f8f0339434fd8b8b0792f34f1426e70dfd (diff)
downloadcpython-68f4dd8b01b1d2b961f51cf07b785366ceb139e4.zip
cpython-68f4dd8b01b1d2b961f51cf07b785366ceb139e4.tar.gz
cpython-68f4dd8b01b1d2b961f51cf07b785366ceb139e4.tar.bz2
Doc updates for PEPs 520 and 468.
Diffstat (limited to 'Doc/whatsnew/3.6.rst')
-rw-r--r--Doc/whatsnew/3.6.rst28
1 files changed, 19 insertions, 9 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index e14125a..480459a 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -116,7 +116,10 @@ Windows improvements:
:pep:`4XX` - Python Virtual Environments
PEP written by Carl Meyer
-.. XXX PEP 520: :ref:`Preserving Class Attribute Definition Order<whatsnew-deforder>`
+* PEP 520: :ref:`Preserving Class Attribute Definition Order<whatsnew-deforder>`
+
+* PEP 468: :ref:`Preserving Keyword Argument Order<whatsnew-kwargs>`
+
New Features
============
@@ -380,17 +383,10 @@ PEP 520: Preserving Class Attribute Definition Order
Attributes in a class definition body have a natural ordering: the same
order in which the names appear in the source. This order is now
-preserved in the new class's ``__definition_order__`` attribute. It is
-a tuple of the attribute names, in the order in which they appear in
-the class definition body.
-
-For types that don't have a definition (e.g. builtins), or the attribute
-order could not be determined, ``__definition_order__`` is ``None``.
+preserved in the new class's ``__dict__`` attribute.
Also, the effective default class *execution* namespace (returned from
``type.__prepare__()``) is now an insertion-order-preserving mapping.
-For CPython, it is now ``collections.OrderedDict``. Note that the
-class namespace, ``cls.__dict__``, is unchanged.
.. seealso::
@@ -398,6 +394,20 @@ class namespace, ``cls.__dict__``, is unchanged.
PEP written and implemented by Eric Snow.
+.. _whatsnew-kwargs:
+
+PEP 468: Preserving Keyword Argument Order
+==========================================
+
+``**kwargs`` in a function signature is now guaranteed to be an
+insertion-order-preserving mapping.
+
+.. seealso::
+
+ :pep:`468` - Preserving Keyword Argument Order
+ PEP written and implemented by Eric Snow.
+
+
PEP 509: Add a private version to dict
--------------------------------------