mirror of https://github.com/python/cpython
Add link to glossary for hashable term in docs for set type
This commit is contained in:
parent
e463b668e8
commit
9a411ce9ea
|
@ -2811,9 +2811,10 @@ The constructors for both classes work the same:
|
||||||
frozenset([iterable])
|
frozenset([iterable])
|
||||||
|
|
||||||
Return a new set or frozenset object whose elements are taken from
|
Return a new set or frozenset object whose elements are taken from
|
||||||
*iterable*. The elements of a set must be hashable. To represent sets of
|
*iterable*. The elements of a set must be :term:`hashable`. To
|
||||||
sets, the inner sets must be :class:`frozenset` objects. If *iterable* is
|
represent sets of sets, the inner sets must be :class:`frozenset`
|
||||||
not specified, a new empty set is returned.
|
objects. If *iterable* is not specified, a new empty set is
|
||||||
|
returned.
|
||||||
|
|
||||||
Instances of :class:`set` and :class:`frozenset` provide the following
|
Instances of :class:`set` and :class:`frozenset` provide the following
|
||||||
operations:
|
operations:
|
||||||
|
|
Loading…
Reference in New Issue