The previous markup hijacked the abstract-base-classes glossary entry,
which resulted in the HTML linking to collections.abc when defining the
generic ABC concept. Now the glossary links to the abc module.
+.. _abstract-base-classes:
+
:mod:`abc` --- Abstract Base Classes
====================================
--------------
This module provides the infrastructure for defining an :term:`abstract base
-class` (ABCs) in Python, as outlined in :pep:`3119`; see the PEP for why this
+class` (ABC) in Python, as outlined in :pep:`3119`; see the PEP for why this
was added to Python. (See also :pep:`3141` and the :mod:`numbers` module
regarding a type hierarchy for numbers based on ABCs.)
.. versionchanged:: 3.3
Formerly, this module was part of the :mod:`collections` module.
-.. _abstract-base-classes:
+.. _collections-abstract-base-classes:
Collections Abstract Base Classes
---------------------------------
===================== ====================================================================
.. versionchanged:: 3.3
- Moved :ref:`abstract-base-classes` to the :mod:`collections.abc` module.
+ Moved :ref:`collections-abstract-base-classes` to the :mod:`collections.abc` module.
For backwards compatibility, they continue to be visible in this module
as well.