Skip to content

Commit fa960d3

Browse files
AA-TurnerStanFromIreland
authored andcommitted
[3.13] pythonGH-101100: Resolve reference warnings in library/stdtypes.rst (pythonGH-138420)
(cherry picked from commit cde19e5) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 462541c commit fa960d3

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
@@ -4581,11 +4581,12 @@ other sequence-like behavior.
45814581

45824582
There are currently two built-in set types, :class:`set` and :class:`frozenset`.
45834583
The :class:`set` type is mutable --- the contents can be changed using methods
4584-
like :meth:`~set.add` and :meth:`~set.remove`. Since it is mutable, it has no
4585-
hash value and cannot be used as either a dictionary key or as an element of
4586-
another set. The :class:`frozenset` type is immutable and :term:`hashable` ---
4587-
its contents cannot be altered after it is created; it can therefore be used as
4588-
a dictionary key or as an element of another set.
4584+
like :meth:`add <set.add>` and :meth:`remove <set.add>`.
4585+
Since it is mutable, it has no hash value and cannot be used as
4586+
either a dictionary key or as an element of another set.
4587+
The :class:`frozenset` type is immutable and :term:`hashable` ---
4588+
its contents cannot be altered after it is created;
4589+
it can therefore be used as a dictionary key or as an element of another set.
45894590

45904591
Non-empty sets (not frozensets) can be created by placing a comma-separated list
45914592
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
@@ -30,7 +30,6 @@ Doc/library/pyexpat.rst
3030
Doc/library/select.rst
3131
Doc/library/socket.rst
3232
Doc/library/ssl.rst
33-
Doc/library/stdtypes.rst
3433
Doc/library/subprocess.rst
3534
Doc/library/termios.rst
3635
Doc/library/test.rst

0 commit comments

Comments
 (0)