summaryrefslogtreecommitdiffstats
path: root/Doc/library/sets.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-02 14:58:50 (GMT)
committerGeorg Brandl <georg@python.org>2007-12-02 14:58:50 (GMT)
commit584265b0010c660af21d3b22ac18fff0da678dd0 (patch)
treee8d6c884efe654560c7118d61b14296008a6f5b3 /Doc/library/sets.rst
parentb15a8df51919ae428023df79fd078263d4d23c88 (diff)
downloadcpython-584265b0010c660af21d3b22ac18fff0da678dd0.zip
cpython-584265b0010c660af21d3b22ac18fff0da678dd0.tar.gz
cpython-584265b0010c660af21d3b22ac18fff0da678dd0.tar.bz2
Add more entries to the glossary.
Written by Jeff Wheeler for GHOP.
Diffstat (limited to 'Doc/library/sets.rst')
-rw-r--r--Doc/library/sets.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/sets.rst b/Doc/library/sets.rst
index f9f8b59..88e442a 100644
--- a/Doc/library/sets.rst
+++ b/Doc/library/sets.rst
@@ -228,9 +228,9 @@ Sets can only contain immutable elements. For convenience, mutable :class:`Set`
objects are automatically copied to an :class:`ImmutableSet` before being added
as a set element.
-The mechanism is to always add a hashable element, or if it is not hashable, the
-element is checked to see if it has an :meth:`__as_immutable__` method which
-returns an immutable equivalent.
+The mechanism is to always add a :term:`hashable` element, or if it is not
+hashable, the element is checked to see if it has an :meth:`__as_immutable__`
+method which returns an immutable equivalent.
Since :class:`Set` objects have a :meth:`__as_immutable__` method returning an
instance of :class:`ImmutableSet`, it is possible to construct sets of sets.