[Python-ideas] An async facade?
Guido van Rossum
guido at python.org
Fri Dec 21 00:49:44 CET 2012
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)
More information about the Python-ideas
mailing list