diff options
author | Georg Brandl <georg@python.org> | 2010-03-21 09:08:00 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-03-21 09:08:00 (GMT) |
commit | 3814ddfcfcd6b1bb6fd0967756e2ca68a9a5e984 (patch) | |
tree | 404c1f1f01f0e0c133c7a5c0691757483b6b9031 /Doc | |
parent | dad0203f0a5898cfbd4a0e6af5f1faf792b8587f (diff) | |
download | cpython-3814ddfcfcd6b1bb6fd0967756e2ca68a9a5e984.zip cpython-3814ddfcfcd6b1bb6fd0967756e2ca68a9a5e984.tar.gz cpython-3814ddfcfcd6b1bb6fd0967756e2ca68a9a5e984.tar.bz2 |
Add a paragraph about set displays.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 3736ad0..3d23d20 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1672,6 +1672,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]) |