[Python-checkins] cpython: whatsnew: abc.ABC. Also add issue number to news entry and reword.
r.david.murray
python-checkins at python.org
Sun Dec 29 05:16:11 CET 2013
http://hg.python.org/cpython/rev/08b570183af8
changeset: 88222:08b570183af8
user: R David Murray <rdmurray at bitdance.com>
date: Sat Dec 28 23:15:12 2013 -0500
summary:
whatsnew: abc.ABC. Also add issue number to news entry and reword.
files:
Doc/whatsnew/3.4.rst | 6 ++++++
Misc/NEWS | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -481,6 +481,12 @@
caches that are affected by changes in the object graph. (Contributed
by Łukasz Langa in :issue:`16832`.)
+New class :class:`~abc.ABC` has :class:`~abc.ABCMeta` as its meta class.
+Using ``ABC`` as a base class has essentially the same effect as specifying
+``metaclass=abc.ABCMeta``, but is simpler to type and easier to read.
+(Contributed by Bruno Dupuis in :issue:`16049`.)
+
+
aifc
----
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2671,8 +2671,9 @@
Content-Length and the incoming stream is finished. Patch by Eran
Rundstein.
-- Add abc.ABC class to use inheritance rather than a direct invocation of
- ABCMeta metaclass. Patch by Bruno Dupuis.
+- Issue #16049: Add abc.ABC class to enable the use of inheritance to create
+ ABCs, rather than the more cumbersome metaclass=ABCMeta. Patch by Bruno
+ Dupuis.
- Expose the TCP_FASTOPEN and MSG_FASTOPEN flags in socket when they're
available.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list