]> granicus.if.org Git - python/commitdiff
whatsnew: abc.ABC. Also add issue number to news entry and reword.
authorR David Murray <rdmurray@bitdance.com>
Sun, 29 Dec 2013 04:15:12 +0000 (23:15 -0500)
committerR David Murray <rdmurray@bitdance.com>
Sun, 29 Dec 2013 04:15:12 +0000 (23:15 -0500)
Doc/whatsnew/3.4.rst
Misc/NEWS

index 1f0a1f1210043e52dafc0677e5e81acd5d3f37d8..4f408ccac641d68e7b5d5e9955da846758fe8ef8 100644 (file)
@@ -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
 ----
index 8ef6063ad92353719e7472200090faf1cb151b0c..a203bc3d205fa2e5703d85b9f94c36f98ef83c81 100644 (file)
--- 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.