Skip to content

Commit 9a411ce

Browse files
committed
Add link to glossary for hashable term in docs for set type
1 parent e463b66 commit 9a411ce

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,9 +2811,10 @@ The constructors for both classes work the same:
28112811
frozenset([iterable])
28122812

28132813
Return a new set or frozenset object whose elements are taken from
2814-
*iterable*. The elements of a set must be hashable. To represent sets of
2815-
sets, the inner sets must be :class:`frozenset` objects. If *iterable* is
2816-
not specified, a new empty set is returned.
2814+
*iterable*. The elements of a set must be :term:`hashable`. To
2815+
represent sets of sets, the inner sets must be :class:`frozenset`
2816+
objects. If *iterable* is not specified, a new empty set is
2817+
returned.
28172818

28182819
Instances of :class:`set` and :class:`frozenset` provide the following
28192820
operations:

0 commit comments

Comments
 (0)