Message288773
Expanding an async_generator to any container-type currently makes you do an async-for loop/comprehension. There are some third-party libs (aitertools) that have helpers but it would be nice for this to be upstream for list, tuple, dict, set, etc.
Usage might be:
expanded: List[int] = await asyncio.list(gen()) |
|
Date |
User |
Action |
Args |
2017-03-01 18:52:55 | Codey Oxley | set | recipients:
+ Codey Oxley, gvanrossum, yselivanov |
2017-03-01 18:52:55 | Codey Oxley | set | messageid: <1488394375.71.0.89348090398.issue29689@psf.upfronthosting.co.za> |
2017-03-01 18:52:55 | Codey Oxley | link | issue29689 messages |
2017-03-01 18:52:55 | Codey Oxley | create | |
|