On 2/14/07, Greg Ewing <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to