summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-03-20 18:33:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-03-20 18:33:06 (GMT)
commitbe075b1c4ed96d3b7550833a9a558690c2e6c0f9 (patch)
tree9861073a07a97d4e64d1f2df812790565f3ec55f /Doc
parentd72c7b671e2d010ea39a8686f89c83612d2d3a76 (diff)
downloadcpython-be075b1c4ed96d3b7550833a9a558690c2e6c0f9.zip
cpython-be075b1c4ed96d3b7550833a9a558690c2e6c0f9.tar.gz
cpython-be075b1c4ed96d3b7550833a9a558690c2e6c0f9.tar.bz2
Add MutableSet example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index b136cf1..4e79e25 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -132,7 +132,12 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
inherit from both :meth:`Set` and :meth:`Hashable`, then define
``__hash__ = Set._hash``.
-(For more about ABCs, see the :mod:`abc` module and :pep:`3119`.)
+.. seealso::
+
+ * `OrderedSet recipe <http://code.activestate.com/recipes/576694/>`_ for an
+ example built on :class:`MutableSet`.
+
+ * For more about ABCs, see the :mod:`abc` module and :pep:`3119`.
:class:`Counter` objects