python threading

Alex Martelli aleax at aleax.it
Wed Apr 17 03:07:06 EDT 2002


Paul Rubin wrote:

> Alex Martelli <aleax at aleax.it> writes:
>> Yes, but a GUI thread can't do that either -- nor can a network one;
>> they must be ready for user-input events and netword-data-arriving
>> events too.  The problem is how to seamlessly merge waiting for
>> THOSE kinds of things and for Python-thread-stuff kinds...
> 
> What's really needed is a way to raise events asynchronously in other
> threads.  However this seems technically difficult.  There's some

Yes, and yes.  Problem is the "events" under consideration are disparate:
select sees sockets (files under Unix), each GUI kit has its own ideas.

> discussion of it in one of the sourceforge bug reports; I don't have
> the number handy but the title is something like "add a way to make
> the program completely exit" (i.e. by killing all the threads).

Tx, I'll see if I can find it.


Alex




More information about the Python-list mailing list