One of the big problems I've seen with the basic approachability of
async/await in Python is the lack of interpreter support.
You might want to have a look at aioconsole [1]; it provides an
asynchronous REPL that you can use to interact with asyncio servers.
You can try it out using the ap
Yury this looks great! Thanks for suggesting this.
One of the big problems I've seen with the basic approachability of
async/await in Python is the lack of interpreter support. Now this makes
that a lot easier by having a one function you can use makes this a lot
easier (One of the main things
> On Nov 16, 2016, at 3:35 PM, Nathaniel Smith wrote:
>
> What's the use case for the async generator version? Could the yield be
> replaced by 'await loop.shutting_down()’?
Async generator version (inspired by contextlib.contextmanager decorator) is
needed in cases where you want loop.run_fo
What's the use case for the async generator version? Could the yield be
replaced by 'await loop.shutting_down()'?
On Nov 16, 2016 10:12 AM, "Yury Selivanov" wrote:
> One of the remaining problems with the event loop in asyncio is
> bootstrapping/finalizing asyncio programs.
>
> Currently, there
One of the remaining problems with the event loop in asyncio is
bootstrapping/finalizing asyncio programs.
Currently, there are two different scenarios:
[1] Running a coroutine:
async def main():
# your program
loop = asyncio.get_event_loop()
try:
loop.run_until_compl