diff options
-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 6f82d6ae26..b64ff4148e 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]) |