mirror of
https://github.com/python/cpython.git
synced 2025-11-24 12:20:42 +00:00
gh-140379: add hyperlinks to list and set (GH-140399)
Some checks are pending
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / iOS (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
Some checks are pending
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / iOS (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
add hyperlinks to list and set
This commit is contained in:
parent
9cb8c52d5e
commit
92741c59f8
1 changed files with 7 additions and 7 deletions
|
|
@ -12,9 +12,8 @@ and adds some new things as well.
|
||||||
More on Lists
|
More on Lists
|
||||||
=============
|
=============
|
||||||
|
|
||||||
The list data type has some more methods. Here are all of the methods of list
|
The :ref:`list <typesseq-list>` data type has some more methods. Here are all
|
||||||
objects:
|
of the methods of list objects:
|
||||||
|
|
||||||
|
|
||||||
.. method:: list.append(x)
|
.. method:: list.append(x)
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
@ -445,10 +444,11 @@ packing and sequence unpacking.
|
||||||
Sets
|
Sets
|
||||||
====
|
====
|
||||||
|
|
||||||
Python also includes a data type for *sets*. A set is an unordered collection
|
Python also includes a data type for :ref:`sets <types-set>`. A set is
|
||||||
with no duplicate elements. Basic uses include membership testing and
|
an unordered collection with no duplicate elements. Basic uses include
|
||||||
eliminating duplicate entries. Set objects also support mathematical operations
|
membership testing and eliminating duplicate entries. Set objects also
|
||||||
like union, intersection, difference, and symmetric difference.
|
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
|
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
|
create an empty set you have to use ``set()``, not ``{}``; the latter creates an
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue