[Python-ideas] async/await in Python

Antoine Pitrou solipsis at pitrou.net
Sun Apr 19 20:36:47 CEST 2015


On Fri, 17 Apr 2015 20:19:42 +0000 (UTC)
Victor Stinner <victor.stinner at gmail.com>
wrote:
> They are almost
> required to make asyncio usage easier. "async for" would help database ORMs
> or the aiofiles project (run file I/O in threads). "async with" helps also ORMs.

I don't understand how it would help ORMs in any way. ORMs run database
requests transparently when the user requests an attribute, which is
completely at odds with the approach of explicitly marking (either
through "yield from" or "await") all potentially yielding operations.

Regards

Antoine.




More information about the Python-ideas mailing list