Add some internal links.

This commit is contained in:
Raymond Hettinger 2010-11-30 17:45:41 +00:00
parent 73f382de1c
commit dcb4491b0a
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Glossary
:ref:`2to3-reference`. :ref:`2to3-reference`.
abstract base class 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 providing a way to define interfaces when other techniques like
:func:`hasattr` would be clumsy. Python comes with many built-in ABCs for :func:`hasattr` would be clumsy. Python comes with many built-in ABCs for
data structures (in the :mod:`collections` module), numbers (in the data structures (in the :mod:`collections` module), numbers (in the

View File

@ -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 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. particular interface, for example, whether it is hashable or a mapping.
.. seealso:: .. seealso::
@ -959,6 +959,7 @@ attribute.
subclass) or an arbitrary sequence which can be converted into a string using subclass) or an arbitrary sequence which can be converted into a string using
the built-in :func:`str` function. the built-in :func:`str` function.
.. _abstract-base-classes:
ABCs - abstract base classes ABCs - abstract base classes
---------------------------- ----------------------------