Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dcb4491b
Commit
dcb4491b
authored
Nov 30, 2010
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some internal links.
parent
73f382de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Doc/glossary.rst
Doc/glossary.rst
+1
-1
Doc/library/collections.rst
Doc/library/collections.rst
+2
-1
No files found.
Doc/glossary.rst
View file @
dcb4491b
...
...
@@ -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
...
...
Doc/library/collections.rst
View file @
dcb4491b
...
...
@@ -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
----------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment