summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-11-30 17:45:41 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-11-30 17:45:41 (GMT)
commitdcb4491b0aef708ea006c2cb98870b73f1953087 (patch)
treeb283ad3f2e3b607869634aece547c9cc92851ff3
parent73f382de1cf6e7a0c31ac8fb7b50126b780d4e21 (diff)
downloadcpython-dcb4491b0aef708ea006c2cb98870b73f1953087.zip
cpython-dcb4491b0aef708ea006c2cb98870b73f1953087.tar.gz
cpython-dcb4491b0aef708ea006c2cb98870b73f1953087.tar.bz2
Add some internal links.
-rw-r--r--Doc/glossary.rst2
-rw-r--r--Doc/library/collections.rst3
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 4b0ab70..a051fe8 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -27,7 +27,7 @@ Glossary
:ref:`2to3-reference`.
abstract base class
- Abstract Base Classes (abbreviated ABCs) complement :term:`duck-typing` by
+ :ref:`abstract-base-classes` complement :term:`duck-typing` by
providing a way to define interfaces when other techniques like
:func:`hasattr` would be clumsy. Python comes with many built-in ABCs for
data structures (in the :mod:`collections` module), numbers (in the
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 3f81c00..bc3801a 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -28,7 +28,7 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
===================== ====================================================================
In addition to the concrete container classes, the collections module provides
-ABCs (abstract base classes) that can be used to test whether a class provides a
+:ref:`abstract-base-classes` that can be used to test whether a class provides a
particular interface, for example, whether it is hashable or a mapping.
.. seealso::
@@ -959,6 +959,7 @@ attribute.
subclass) or an arbitrary sequence which can be converted into a string using
the built-in :func:`str` function.
+.. _abstract-base-classes:
ABCs - abstract base classes
----------------------------