[Python-checkins] r86895 - in python/branches/py3k/Doc: glossary.rst library/collections.rst
raymond.hettinger
python-checkins at python.org
Tue Nov 30 18:45:41 CET 2010
Author: raymond.hettinger
Date: Tue Nov 30 18:45:41 2010
New Revision: 86895
Log:
Add some internal links.
Modified:
python/branches/py3k/Doc/glossary.rst
python/branches/py3k/Doc/library/collections.rst
Modified: python/branches/py3k/Doc/glossary.rst
==============================================================================
--- python/branches/py3k/Doc/glossary.rst (original)
+++ python/branches/py3k/Doc/glossary.rst Tue Nov 30 18:45:41 2010
@@ -27,7 +27,7 @@
: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
Modified: python/branches/py3k/Doc/library/collections.rst
==============================================================================
--- python/branches/py3k/Doc/library/collections.rst (original)
+++ python/branches/py3k/Doc/library/collections.rst Tue Nov 30 18:45:41 2010
@@ -28,7 +28,7 @@
===================== ====================================================================
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 @@
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
----------------------------
More information about the Python-checkins
mailing list