Skip to content

Commit ffbc4bf

Browse files
committed
gh-152397: Remove external PEP reference
1 parent 306d7a7 commit ffbc4bf

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Doc/library/itertools.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ loops that truncate the stream.
197197
for iterable in iterables:
198198
yield from iterable
199199

200-
Note that :pep:`798` unpacking syntax provides similar functionality
201-
so that ``list(chain(p, q))`` could be written as
202-
``[*s for s in (p, q)]``.
200+
In Python 3.15 and later, the syntax for :ref:`unpacking in comprehensions
201+
<unpacking-in-comprehensions>` provides similar functionality so that
202+
``list(chain(p, q))`` could be written as ``[*s for s in (p, q)]``.
203203

204204

205205
.. classmethod:: chain.from_iterable(iterable)

Doc/reference/expressions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ appear directly in a class definition.
848848
``yield`` and ``yield from`` prohibited in the implicitly nested scope.
849849

850850

851+
.. _unpacking-in-comprehensions:
852+
851853
Unpacking in comprehensions
852854
^^^^^^^^^^^^^^^^^^^^^^^^^^^
853855

0 commit comments

Comments
 (0)