]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-140379: add hyperlinks to list and set (GH-140399) (#141387)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Nov 2025 06:09:28 +0000 (07:09 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Nov 2025 06:09:28 +0000 (06:09 +0000)
gh-140379: add hyperlinks to list and set (GH-140399)

add hyperlinks to list and set
(cherry picked from commit 92741c59f89e114474bdb2cb539107ef6bae0b9c)

Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
Doc/tutorial/datastructures.rst

index 1332c53f39687ec53c29f43828f7ffbc753943c0..7e02e74177c457033c02cf52dfa6b9cf57434fb4 100644 (file)
@@ -12,9 +12,8 @@ and adds some new things as well.
 More on Lists
 =============
 
-The list data type has some more methods.  Here are all of the methods of list
-objects:
-
+The :ref:`list <typesseq-list>` data type has some more methods. Here are all
+of the methods of list objects:
 
 .. method:: list.append(x)
    :noindex:
@@ -445,10 +444,11 @@ packing and sequence unpacking.
 Sets
 ====
 
-Python also includes a data type for *sets*.  A set is an unordered collection
-with no duplicate elements.  Basic uses include membership testing and
-eliminating duplicate entries.  Set objects also support mathematical operations
-like union, intersection, difference, and symmetric difference.
+Python also includes a data type for :ref:`sets <types-set>`.  A set is
+an unordered collection with no duplicate elements.  Basic uses include
+membership testing and eliminating duplicate entries.  Set objects also
+support mathematical operations like union, intersection, difference, and
+symmetric difference.
 
 Curly braces or the :func:`set` function can be used to create sets.  Note: to
 create an empty set you have to use ``set()``, not ``{}``; the latter creates an