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 _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com