summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-03-20 18:25:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-03-20 18:25:49 (GMT)
commit2cef1a540984985913d5b6d7ffbe760db4889737 (patch)
tree84140eaf43e7ccec3c8a553fb4ffe7557b238244 /Doc
parentefc82f7e8eff19d8e844a3dc268a88de7fbcb173 (diff)
downloadcpython-2cef1a540984985913d5b6d7ffbe760db4889737.zip
cpython-2cef1a540984985913d5b6d7ffbe760db4889737.tar.gz
cpython-2cef1a540984985913d5b6d7ffbe760db4889737.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 32375a2..844b78a 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -147,7 +147,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