mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add a paragraph about set displays.
This commit is contained in:
parent
dad0203f0a
commit
3814ddfcfc
1 changed files with 4 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue