[Python-ideas] async/await in Python

Andrew Barnert abarnert at yahoo.com
Sat Apr 18 00:44:47 CEST 2015


On Apr 17, 2015, at 15:25, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> 
> 
>> On 2015-04-17 6:15 PM, Andrew Barnert wrote:
>> Could you show the best yield from parallel for the example at the end, so it's easier to see the readability benefits?
>> 
>> Or, even better, provide a simple example that uses async for or async with and the yield from parallel, so it's easier to see the (I'm assuming even bigger, by a long shot) readability benefits?
> I don't have a real example, but we're getting there

I don't mean something that big; just the simple example at the end of the PEP, possibly with an "async for" or "async with" added if there's a reasonable way to do so while still staying that trivial, shown the "new way" vs. the "old way".


> 
> Andrew Svetlov made some experiments porting his aiopg library
> to the new syntax.  So perhaps early next week we will have
> a real example of real code.
> 
> You can also experiment yourself with the implementation.
> 
> Thanks you,
> 
> Yury
> 


More information about the Python-ideas mailing list