Commit 178c25db authored by Georg Brandl's avatar Georg Brandl

Fixup abc.ABC wording and add versionadded.

parent 4af1da71
...@@ -129,13 +129,16 @@ This module provides the following classes: ...@@ -129,13 +129,16 @@ This module provides the following classes:
.. class:: ABC .. class:: ABC
A helper class that has :class:`ABCMeta` as metaclass. :class:`ABC` is the A helper class that has :class:`ABCMeta` as its metaclass. With this class,
standard class to inherit from in order to create an abstract base class, an abstract base class can be created by simply deriving from :class:`ABC`,
avoiding sometimes confusing metaclass usage. avoiding sometimes confusing metaclass usage.
Note that :class:`ABC` type is still :class:`ABCMeta`, therefore inheriting Note that the type of :class:`ABC` is still :class:`ABCMeta`, therefore
from :class:`ABC` requires usual precautions regarding metaclasses usage inheriting from :class:`ABC` requires the usual precautions regarding metaclass
as multiple inheritance may lead to metaclass conflicts. usage, as multiple inheritance may lead to metaclass conflicts.
.. versionadded:: 3.4
The :mod:`abc` module also provides the following decorators: The :mod:`abc` module also provides the following decorators:
......
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