Commit c63617f0 authored by R David Murray's avatar R David Murray

whatsnew: abc.ABC. Also add issue number to news entry and reword.

parent 3b2f845c
...@@ -481,6 +481,12 @@ New function :func:`abc.get_cache_token` can be used to know when to invalidate ...@@ -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 caches that are affected by changes in the object graph. (Contributed
by Łukasz Langa in :issue:`16832`.) 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 aifc
---- ----
......
...@@ -2671,8 +2671,9 @@ Library ...@@ -2671,8 +2671,9 @@ Library
Content-Length and the incoming stream is finished. Patch by Eran Content-Length and the incoming stream is finished. Patch by Eran
Rundstein. Rundstein.
- Add abc.ABC class to use inheritance rather than a direct invocation of - Issue #16049: Add abc.ABC class to enable the use of inheritance to create
ABCMeta metaclass. Patch by Bruno Dupuis. 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 - Expose the TCP_FASTOPEN and MSG_FASTOPEN flags in socket when they're
available. available.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment