summaryrefslogtreecommitdiffstats
path: root/Doc/library/stdtypes.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-03-21 09:10:32 (GMT)
committerGeorg Brandl <georg@python.org>2010-03-21 09:10:32 (GMT)
commit99cd957757c5ca57e61bd25d55fdb614f0a01932 (patch)
tree296abcf2c8f7abd867be2f612bf21174fbb72cbc /Doc/library/stdtypes.rst
parent1f70cdfe00862715cffdc6fa93f524af96334694 (diff)
downloadcpython-99cd957757c5ca57e61bd25d55fdb614f0a01932.zip
cpython-99cd957757c5ca57e61bd25d55fdb614f0a01932.tar.gz
cpython-99cd957757c5ca57e61bd25d55fdb614f0a01932.tar.bz2
Merged revisions 79172 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79172 | georg.brandl | 2010-03-21 10:08:00 +0100 (So, 21 Mär 2010) | 1 line Add a paragraph about set displays. ........
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r--Doc/library/stdtypes.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 6f82d6a..b64ff41 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1704,6 +1704,10 @@ The :class:`frozenset` type is immutable and :term:`hashable` --- its contents c
altered after it is created; it can therefore be used as a dictionary key or as
an element of another set.
+Non-empty sets (not frozensets) can be created by placing a comma-separated list
+of elements pairs within braces, for example: ``{'jack', 'sjoerd'}``, in
+addition to the :class:`set` constructor.
+
The constructors for both classes work the same:
.. class:: set([iterable])