New submission from Codey Oxley: 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()) ---------- components: Library (Lib), asyncio messages: 288773 nosy: Codey Oxley, gvanrossum, yselivanov priority: normal severity: normal status: open title: Asyncio-namespace helpers for async_generators type: enhancement versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com