diff options
| author | Raymond Hettinger <python@rcn.com> | 2009-03-20 18:25:49 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2009-03-20 18:25:49 (GMT) |
| commit | 2cef1a540984985913d5b6d7ffbe760db4889737 (patch) | |
| tree | 84140eaf43e7ccec3c8a553fb4ffe7557b238244 | |
| parent | efc82f7e8eff19d8e844a3dc268a88de7fbcb173 (diff) | |
| download | cpython-2cef1a540984985913d5b6d7ffbe760db4889737.zip cpython-2cef1a540984985913d5b6d7ffbe760db4889737.tar.gz cpython-2cef1a540984985913d5b6d7ffbe760db4889737.tar.bz2 | |
Add MutableSet example.
| -rw-r--r-- | Doc/library/collections.rst | 7 |
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 |
