We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ed6711 commit 8107c53Copy full SHA for 8107c53
1 file changed
Doc/library/itertools.rst
@@ -197,6 +197,10 @@ loops that truncate the stream.
197
for iterable in iterables:
198
yield from iterable
199
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)]``.
203
+
204
205
.. classmethod:: chain.from_iterable(iterable)
206
@@ -208,6 +212,10 @@ loops that truncate the stream.
208
212
209
213
210
214
215
216
+ so that ``list(chain.from_iterable(iterables))`` could be written as
217
+ ``[*s for s in iterables]``.
218
211
219
220
.. function:: combinations(iterable, r)
221
0 commit comments