https://github.com/python/cpython/commit/3334842f893f706e93bd386a712f617c3e295da2 commit: 3334842f893f706e93bd386a712f617c3e295da2 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: nedbat <[email protected]> date: 2026-06-28T15:13:06-04:00 summary:
[3.15] Docs: link to language reference instead of PEP (GH-152462) (#152522) Docs: link to language reference instead of PEP (GH-152462) (cherry picked from commit 54524ab669a566623336c36994e1b3f2a6711c77) Co-authored-by: Ned Batchelder <[email protected]> files: M Doc/library/itertools.rst M Doc/reference/expressions.rst diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 65442021ce1795d..e1730608887b3dd 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 9f55e9ad7eb5c17..93b2cdc1e17010c 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
