]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: link to language reference instead of PEP (#152462)
authorNed Batchelder <ned@nedbatchelder.com>
Sun, 28 Jun 2026 19:01:36 +0000 (15:01 -0400)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 19:01:36 +0000 (15:01 -0400)
Doc/library/itertools.rst
Doc/reference/expressions.rst

index 65442021ce1795d7f603a05374e9c98fa97d8ce0..e1730608887b3dd0f45a2be5347ebbec06b4da54 100644 (file)
@@ -197,9 +197,9 @@ loops that truncate the stream.
           for iterable in iterables:
               yield from iterable
 
-   Note that :pep:`798` unpacking syntax provides similar functionality
-   so that ``list(chain(p, q))`` could be written as
-   ``[*s for s in (p, q)]``.
+   Note that :ref:`unpacking in comprehensions <unpacking-comprehensions>`
+   provides similar functionality so that ``list(chain(p, q))`` could be
+   written as ``[*s for s in (p, q)]``.
 
 
 .. classmethod:: chain.from_iterable(iterable)
@@ -212,9 +212,9 @@ loops that truncate the stream.
           for iterable in iterables:
               yield from iterable
 
-   Note that :pep:`798` unpacking syntax provides similar functionality
-   so that ``list(chain.from_iterable(iterables))`` could be written as
-   ``[*s for s in iterables]``.
+   Note that :ref:`unpacking in comprehensions <unpacking-comprehensions>`
+   provides similar functionality so that ``list(chain.from_iterable(iterables))``
+   could be written as ``[*s for s in iterables]``.
 
 
 .. function:: combinations(iterable, r)
index fe38e06cd1dcd2d19e1447df3304ebe50f14986b..af313f42f9bff6b4df11f476caa715479c39a680 100644 (file)
@@ -848,6 +848,8 @@ appear directly in a class definition.
    ``yield`` and ``yield from`` prohibited in the implicitly nested scope.
 
 
+.. _unpacking-comprehensions:
+
 Unpacking in comprehensions
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^