Re:Python Generators in Depth
by pekk on Tuesday February 26, 2013 @01:33PM
(#5287412)
These are great.
If only one could write async network code with these that wasn't vastly more complicated than the equivalent gevent code.
[ Parent
| on HN ]
Tulip coroutines[0] look rather good. As with C#'s async/await you have to propagate the "asyncness" to the event loop (using `yield from` with a future or another coroutine), which is not necessary in gevent, but that should be the extent of it.
[0] http://www.python.org/dev/peps/pep-3156/#coroutines-and-the-...