summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-19 07:15:47 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-19 07:15:47 (GMT)
commite0054c51c7337354e415deb5b1a3d17778f42b72 (patch)
treedb252549459dd530207795d91fc54ece9f70c9e4 /Doc/glossary.rst
parentf06568cbd8160d31c7ef03bfe867bcd6372c1e31 (diff)
downloadcpython-e0054c51c7337354e415deb5b1a3d17778f42b72.zip
cpython-e0054c51c7337354e415deb5b1a3d17778f42b72.tar.gz
cpython-e0054c51c7337354e415deb5b1a3d17778f42b72.tar.bz2
Link isinstance/issubclass to the ABC glossary entry (#12256)
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 41228cd..37fa9b0 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -30,7 +30,10 @@ Glossary
Abstract base classes complement :term:`duck-typing` by
providing a way to define interfaces when other techniques like
:func:`hasattr` would be clumsy or subtly wrong (for example with
- :ref:`magic methods <new-style-special-lookup>`). Python comes with many built-in ABCs for
+ :ref:`magic methods <new-style-special-lookup>`). ABCs introduce virtual
+ subclasses, which are classes that don't inherit from a class but are
+ still recognized by :func:`isinstance` and :func:`issubclass`; see the
+ :mod:`abc` module documentation. Python comes with many built-in ABCs for
data structures (in the :mod:`collections` module), numbers (in the
:mod:`numbers` module), and streams (in the :mod:`io` module). You can
create your own ABCs with the :mod:`abc` module.