mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
whatsnew: abc.ABC. Also add issue number to news entry and reword.
This commit is contained in:
parent
880fee60ca
commit
2691ee6183
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
----
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue