summaryrefslogtreecommitdiffstats
path: root/Doc/library/abc.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-12-16 12:32:33 (GMT)
committerGeorg Brandl <georg@python.org>2012-12-16 12:32:33 (GMT)
commit09bc642153fc1b601909fd27d5bd728b9842fa98 (patch)
tree49abb3e9f3583e1a3d3ce20fbb8e60dc6061fdc9 /Doc/library/abc.rst
parent0bb8d8c4c968aa8cf780bd5a38ae5873e23b5353 (diff)
downloadcpython-09bc642153fc1b601909fd27d5bd728b9842fa98.zip
cpython-09bc642153fc1b601909fd27d5bd728b9842fa98.tar.gz
cpython-09bc642153fc1b601909fd27d5bd728b9842fa98.tar.bz2
Fixup abc.ABC wording and add versionadded.
Diffstat (limited to 'Doc/library/abc.rst')
-rw-r--r--Doc/library/abc.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst
index 75eaa30..27abb60 100644
--- a/Doc/library/abc.rst
+++ b/Doc/library/abc.rst
@@ -129,13 +129,16 @@ This module provides the following classes:
.. class:: ABC
- A helper class that has :class:`ABCMeta` as metaclass. :class:`ABC` is the
- standard class to inherit from in order to create an abstract base class,
+ A helper class that has :class:`ABCMeta` as its metaclass. With this class,
+ an abstract base class can be created by simply deriving from :class:`ABC`,
avoiding sometimes confusing metaclass usage.
- Note that :class:`ABC` type is still :class:`ABCMeta`, therefore inheriting
- from :class:`ABC` requires usual precautions regarding metaclasses usage
- as multiple inheritance may lead to metaclass conflicts.
+ Note that the type of :class:`ABC` is still :class:`ABCMeta`, therefore
+ inheriting from :class:`ABC` requires the usual precautions regarding metaclass
+ usage, as multiple inheritance may lead to metaclass conflicts.
+
+ .. versionadded:: 3.4
+
The :mod:`abc` module also provides the following decorators: