[Python-3000] Futures in Python 3000

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 21 11:54:18 CEST 2006


Tim Peters wrote:

> Asynch programming wasn't at all a goal of generators, and Twisted is
> well worth looking into for those who want slicker asynch programming
> tools.

There might possibly be room for an alternative way of
presenting the generator machinery that makes it look
like less of an abuse when it's used inside-out.

A while back I was thinking about having something
like

     result = call some_generator(args)

which would be syntactic sugar for yielding an object
that gets used by a generator-scheduling framework
to simulate a coroutine.

--
Greg


More information about the Python-3000 mailing list