[Python-ideas] An async facade?
Jonathan Slenders
jonathan at slenders.be
Fri Dec 21 12:47:53 CET 2012
Thank you, Guido! I didn't know about this PEP, but it looks interesting.
I'll try to find some spare time this weekend to read through the PEP,
maybe giving some feedback.
Cheers!
2012/12/21 Guido van Rossum <guido at python.org>
> On Thu, Dec 20, 2012 at 3:34 PM, Jonathan Slenders <jonathan at slenders.be>
> wrote:
> > So, the difference is still that the "await" proposal makes the @async
> > decorator implicit. I'm still in favor of this because in asynchronous
> code,
> > you can have really many functions with this decorator. And if someone
> > forgets about that, getting a generator object instead of a Future is
> quite
> > different in semantics.
>
> Carefully read PEP 3156, and the tulip implementation:
> http://code.google.com/p/tulip/source/browse/tulip/tasks.py . The
> @coroutine decorator is technically redundant when you use yield from.
>
> --
> --Guido van Rossum (python.org/~guido)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121221/c41335ca/attachment.html>
More information about the Python-ideas
mailing list