From 58f4164e6230a0d4ea94bb9f431fb0a249cf2851 Mon Sep 17 00:00:00 2001 From: Bonu Krishna Chaitanya Date: Tue, 21 Oct 2025 11:49:29 +0530 Subject: [PATCH 1/3] add hyperlinks to list and set --- Doc/tutorial/datastructures.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 1332c53f39687e..014df7684d46c2 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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 ` 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 *sets* (see :ref:`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 From 00cee9cb9f05812aa09b4578baf306d6860793cb Mon Sep 17 00:00:00 2001 From: Bonu Krishna Chaitanya Date: Tue, 21 Oct 2025 12:33:28 +0530 Subject: [PATCH 2/3] revert unrelated changes --- Doc/tutorial/datastructures.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 014df7684d46c2..13ba841e2ff753 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -444,11 +444,11 @@ packing and sequence unpacking. Sets ==== -Python also includes a data type for *sets* (see :ref:`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. +Python also includes a data type for *sets* (see :ref:`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 From 446e4291072ac7b6ee6e77f505d867de3693d90c Mon Sep 17 00:00:00 2001 From: Bonu Krishna Chaitanya Date: Tue, 28 Oct 2025 14:58:57 +0530 Subject: [PATCH 3/3] simplify hyperlink in `Sets` --- Doc/tutorial/datastructures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 13ba841e2ff753..7e02e74177c457 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -444,7 +444,7 @@ packing and sequence unpacking. Sets ==== -Python also includes a data type for *sets* (see :ref:`types-set`). A set is +Python also includes a data type for :ref:`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