[Python-Dev] PEP 3152 and yield from Future()

Yury Selivanov yselivanov.ml at gmail.com
Fri Apr 24 03:15:44 CEST 2015



On 2015-04-23 9:05 PM, Greg Ewing wrote:
> Combining those last two lines into one would
> require some extra parenthesisation, but I don't
> think that's something you're going to be doing
> much in practice.

It's a common pattern in asyncio when functions
return futures.  It's OK later to refactor those
functions to coroutines *and* vice-versa.  This
is a fundamental problem for PEP 3152 approach.

Yury


More information about the Python-Dev mailing list