[Python-Dev] PEP 3152 and yield from Future() (original) (raw)
Yury Selivanov yselivanov.ml at gmail.com
Fri Apr 24 03:15:44 CEST 2015
- Previous message (by thread): [Python-Dev] PEP 3152 and yield from Future()
- Next message (by thread): [Python-Dev] PEP 3152 and yield from Future()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] PEP 3152 and yield from Future()
- Next message (by thread): [Python-Dev] PEP 3152 and yield from Future()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]