summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-16 19:13:50 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-11-16 19:13:50 (GMT)
commit6e6cb8e0e491477614bae33c29f6e00d0d48c20b (patch)
tree0cb13cc6d94af48c5a4b78b360c75fcf6f93d406 /Doc/library/collections.rst
parentdbe7519da9d0a99d68aaa773cde2793900dad44f (diff)
downloadcpython-6e6cb8e0e491477614bae33c29f6e00d0d48c20b.zip
cpython-6e6cb8e0e491477614bae33c29f6e00d0d48c20b.tar.gz
cpython-6e6cb8e0e491477614bae33c29f6e00d0d48c20b.tar.bz2
Provide links to Python source where the code is short, readable and
informative adjunct to the docs. Forward-port of Raymond's r86225 and r86245 using the new source reST role added in #10334.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 439e3bf..e34e394 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -31,6 +31,11 @@ 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
particular interface, for example, whether it is hashable or a mapping.
+.. seealso::
+
+ Latest version of the :source:`collections module Python source code
+ <Lib/collections.py>`
+
:class:`Counter` objects
------------------------
@@ -1059,6 +1064,9 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
.. seealso::
+ * Latest version of the :source:`Python source code for the collections
+ abstract base classes <Lib/_abcoll.py>`
+
* `OrderedSet recipe <http://code.activestate.com/recipes/576694/>`_ for an
example built on :class:`MutableSet`.