]> granicus.if.org Git - python/commitdiff
Merged revisions 79172 via svnmerge from
authorGeorg Brandl <georg@python.org>
Sun, 21 Mar 2010 09:10:32 +0000 (09:10 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 21 Mar 2010 09:10:32 +0000 (09:10 +0000)
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.
........

Doc/library/stdtypes.rst

index 6f82d6ae266b6b491376bf4c84f8b266fff4e08a..b64ff4148e525b8d34a471a181cd3455d15a0168 100644 (file)
@@ -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])