[Python-Dev] PEP 3152 and yield from Future()
Victor Stinner
victor.stinner at gmail.com
Thu Apr 23 17:26:38 CEST 2015
2015-04-23 17:22 GMT+02:00 <andrew.svetlov at gmail.com>:
> I can live with `cocall fut()` but the difference between `data = yield from
> loop.sock_recv(sock, 1024)` and `data = cocall (loop.sock_recv(sock,
> 1024))()` frustrates me very much.
You didn't answer to my question. My question is: is it possible to
implement Future.__cocall__() since yield is defined in cofunctions.
If it's possible, can you please show how? (Show me the code!)
Victor
More information about the Python-Dev
mailing list