| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 65d110d commit 37ea7b3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,6 +208,10 @@ loops that truncate the stream. | |||
| 208 | 208 | for iterable in iterables: | |
| 209 | 209 | yield from iterable | |
| 210 | 210 | ||
| 211 | + Note that :pep:`798` unpacking syntax provides similar functionality | ||
| 212 | + so that ``list(chain(p, q))`` could be written as | ||
| 213 | + ``[*s for s in (p, q)]``. | ||
| 214 | + | ||
| 211 | 215 | ||
| 212 | 216 | .. classmethod:: chain.from_iterable(iterable) | |
| 213 | 217 | ||
@@ -219,6 +223,10 @@ loops that truncate the stream. | |||
| 219 | 223 | for iterable in iterables: | |
| 220 | 224 | yield from iterable | |
| 221 | 225 | ||
| 226 | + Note that :pep:`798` unpacking syntax provides similar functionality | ||
| 227 | + so that ``list(chain.from_iterable(iterables))`` could be written as | ||
| 228 | + ``[*s for s in iterables]``. | ||
| 229 | + | ||
| 222 | 230 | ||
| 223 | 231 | .. function:: combinations(iterable, r) | |
| 224 | 232 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments