[Python-Dev] PEP 3152 and yield from Future() (original) (raw)
Łukasz Langa lukasz at langa.pl
Thu Apr 23 17:30:26 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 Apr 23, 2015, at 8:22 AM, andrew.svetlov at gmail.com wrote:
I can live with
cocall fut()
but the difference betweendata = yield from loop.sockrecv(sock, 1024)
anddata = cocall (loop.sockrecv(sock, 1024))()
frustrates me very much.
This is unacceptable. None of the existing async/await implementations in other languages force you to write stuff like this.
-- Best regards, Łukasz Langa
WWW: http://lukasz.langa.pl/ Twitter: @llanga IRC: ambv on #python-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20150423/c064fba1/attachment.html>
- 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 ]