| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -197,6 +197,10 @@ loops that truncate the stream. | |||
| 197 | 197 | for iterable in iterables: | |
| 198 | 198 | yield from iterable | |
| 199 | 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 | + | ||
| 200 | 204 | ||
| 201 | 205 | .. classmethod:: chain.from_iterable(iterable) | |
| 202 | 206 | ||
@@ -208,6 +212,10 @@ loops that truncate the stream. | |||
| 208 | 212 | for iterable in iterables: | |
| 209 | 213 | yield from iterable | |
| 210 | 214 | ||
| 215 | + Note that :pep:`798` unpacking syntax provides similar functionality | ||
| 216 | + so that ``list(chain.from_iterable(iterables))`` could be written as | ||
| 217 | + ``[*s for s in iterables]``. | ||
| 218 | + | ||
| 211 | 219 | ||
| 212 | 220 | .. function:: combinations(iterable, r) | |
| 213 | 221 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments