Kaydet (Commit) 3814ddfc authored tarafından Georg Brandl's avatar Georg Brandl

Add a paragraph about set displays.

üst dad0203f
...@@ -1672,6 +1672,10 @@ The :class:`frozenset` type is immutable and :term:`hashable` --- its contents c ...@@ -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 altered after it is created; it can therefore be used as a dictionary key or as
an element of another set. 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: The constructors for both classes work the same:
.. class:: set([iterable]) .. class:: set([iterable])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment