[Python-Dev] Twisted Isn't Specific (was Re: Trial balloon: microthreads library in stdlib) (original) (raw)

Thomas Wouters thomas at python.org
Thu Feb 15 04:32:21 CET 2007


On 2/14/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

Phillip J. Eby wrote: > peak.events, for example, lets you have multiple event loops > running in the same or different threads. Different threads is okay if you're willing to use threads, but you might not. The reason you're using an event loop may well be precisely so that you don't have to use threads. And... how do you run multiple event loops simultaneously in the same thread? That sounds self-contradictory to me.

If all (or all-but-one) of them have a 'run one iteration' method, you can call that from the 'main' mainloop. Or you can design all mainloops as coroutines and have them call each other. (I haven't looked at Phillip's approach at all, but something tells me coroutines are involved :-)

-- Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20070214/c32837f1/attachment-0001.html



More information about the Python-Dev mailing list