summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-12-28 23:15:12 -0500
committerR David Murray <rdmurray@bitdance.com>2013-12-28 23:15:12 -0500
commit2691ee61833f7f460b5f67795b232a9b6f4518d8 (patch)
tree2cd01a7a0eb69c71be77a7506e457fd7ddf9b729
parent880fee60caf0da8da57713b9dcdf3eee9767aac7 (diff)
downloadcpython-git-2691ee61833f7f460b5f67795b232a9b6f4518d8.tar.gz
whatsnew: abc.ABC. Also add issue number to news entry and reword.
-rw-r--r--Doc/whatsnew/3.4.rst6
-rw-r--r--Misc/NEWS5
2 files changed, 9 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 1f0a1f1210..4f408ccac6 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -481,6 +481,12 @@ New function :func:`abc.get_cache_token` can be used to know when to invalidate
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
index 8ef6063ad9..a203bc3d20 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2671,8 +2671,9 @@ Library
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.