mirror of
https://github.com/python/cpython.git
synced 2025-08-20 00:32:12 +00:00
Add some internal links.
This commit is contained in:
parent
250b4166ca
commit
acdafa8e8c
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -27,10 +27,9 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
|
||||||
:class:`defaultdict` dict subclass that calls a factory function to supply missing values .. versionadded:: 2.5
|
:class:`defaultdict` dict subclass that calls a factory function to supply missing values .. versionadded:: 2.5
|
||||||
===================== ==================================================================== ===========================
|
===================== ==================================================================== ===========================
|
||||||
|
|
||||||
In addition to containers, the collections module provides some ABCs
|
In addition to the concrete container classes, the collections module provides
|
||||||
(abstract base classes) that can be used to test whether a class
|
:ref:`abstract-base-classes` that can be used to test whether a class provides a
|
||||||
provides a particular interface, for example, whether it is hashable or
|
particular interface, for example, whether it is hashable or a mapping.
|
||||||
a mapping.
|
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue