summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-03-20 18:30:29 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-03-20 18:30:29 (GMT)
commit399ff09961bbe8b6688267e7bd2f7f056bae5dc5 (patch)
tree042d3387f776d6c83f805373952328d15d027ad5
parent7e6cf31c29ba401580295ed0219e5c82d70c6601 (diff)
downloadcpython-399ff09961bbe8b6688267e7bd2f7f056bae5dc5.zip
cpython-399ff09961bbe8b6688267e7bd2f7f056bae5dc5.tar.gz
cpython-399ff09961bbe8b6688267e7bd2f7f056bae5dc5.tar.bz2
Add MutableSet example.
-rw-r--r--Doc/library/collections.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index a860a53..4ef0ca4 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -147,8 +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`.
.. _deque-objects: