Skip to content

Commit 92741c5

Browse files
authored
gh-140379: add hyperlinks to list and set (GH-140399)
add hyperlinks to list and set
1 parent 9cb8c52 commit 92741c5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/tutorial/datastructures.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ and adds some new things as well.
1212
More on Lists
1313
=============
1414

15-
The list data type has some more methods. Here are all of the methods of list
16-
objects:
17-
15+
The :ref:`list <typesseq-list>` data type has some more methods. Here are all
16+
of the methods of list objects:
1817

1918
.. method:: list.append(x)
2019
:noindex:
@@ -445,10 +444,11 @@ packing and sequence unpacking.
445444
Sets
446445
====
447446

448-
Python also includes a data type for *sets*. A set is an unordered collection
449-
with no duplicate elements. Basic uses include membership testing and
450-
eliminating duplicate entries. Set objects also support mathematical operations
451-
like union, intersection, difference, and symmetric difference.
447+
Python also includes a data type for :ref:`sets <types-set>`. A set is
448+
an unordered collection with no duplicate elements. Basic uses include
449+
membership testing and eliminating duplicate entries. Set objects also
450+
support mathematical operations like union, intersection, difference, and
451+
symmetric difference.
452452

453453
Curly braces or the :func:`set` function can be used to create sets. Note: to
454454
create an empty set you have to use ``set()``, not ``{}``; the latter creates an

0 commit comments

Comments
 (0)