Message306836
> ... but [await x for x in xs] is still valid _only_ inside async def.
Yes, because it's computed right where it is defined.
a = [x for x in xs] # `a` is a list object
a = (x for x in xs) # `a` is a generator
Do you understand the difference? |
|
| Date |
User |
Action |
Args |
| 2017-11-23 16:38:06 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, arigo, georg.brandl, rhettinger, ncoghlan, belopolsky, benjamin.peterson, erickt, glyph, Inyeol.Lee, serhiy.storchaka, esc24, danielsh, emptysquare, levkivskyi, Jim Fasarakis-Hilliard |
| 2017-11-23 16:38:06 | yselivanov | set | messageid: <[email protected]> |
| 2017-11-23 16:38:06 | yselivanov | link | issue10544 messages |
| 2017-11-23 16:38:06 | yselivanov | create | |
|