Skip to content

Commit f82a0a5

Browse files
AA-Turnermiss-islington
authored andcommitted
pythonGH-101100: Resolve reference warnings in library/stdtypes.rst (pythonGH-138420)
(cherry picked from commit cde19e5) Co-authored-by: Adam Turner <[email protected]>
1 parent 972aa93 commit f82a0a5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/library/stdtypes.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4731,11 +4731,12 @@ other sequence-like behavior.
47314731

47324732
There are currently two built-in set types, :class:`set` and :class:`frozenset`.
47334733
The :class:`set` type is mutable --- the contents can be changed using methods
4734-
like :meth:`~set.add` and :meth:`~set.remove`. Since it is mutable, it has no
4735-
hash value and cannot be used as either a dictionary key or as an element of
4736-
another set. The :class:`frozenset` type is immutable and :term:`hashable` ---
4737-
its contents cannot be altered after it is created; it can therefore be used as
4738-
a dictionary key or as an element of another set.
4734+
like :meth:`add <frozenset.add>` and :meth:`remove <frozenset.add>`.
4735+
Since it is mutable, it has no hash value and cannot be used as
4736+
either a dictionary key or as an element of another set.
4737+
The :class:`frozenset` type is immutable and :term:`hashable` ---
4738+
its contents cannot be altered after it is created;
4739+
it can therefore be used as a dictionary key or as an element of another set.
47394740

47404741
Non-empty sets (not frozensets) can be created by placing a comma-separated list
47414742
of elements within braces, for example: ``{'jack', 'sjoerd'}``, in addition to the

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Doc/library/pyexpat.rst
2929
Doc/library/select.rst
3030
Doc/library/socket.rst
3131
Doc/library/ssl.rst
32-
Doc/library/stdtypes.rst
3332
Doc/library/termios.rst
3433
Doc/library/test.rst
3534
Doc/library/tkinter.rst

0 commit comments

Comments
 (0)