From 399ff09961bbe8b6688267e7bd2f7f056bae5dc5 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 20 Mar 2009 18:30:29 +0000 Subject: [PATCH] Add MutableSet example. --- Doc/library/collections.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index a860a53a719..4ef0ca4488e 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 `_ for an + example built on :class:`MutableSet`. + + * For more about ABCs, see the :mod:`abc` module and :pep:`3119`. .. _deque-objects: