Re: [Tutor] Communicate between a thread and the main program

2010-03-08 Thread Glen Zangirolami
I think you can use Queue to communicate between threads. "The Queue module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between multiple threads" http://docs.python.org/library/queue.html On Mon, Mar

Re: [Tutor] Communicate between a thread and the main program

2010-03-08 Thread Dave Angel
Plato P.B. wrote: Hi all, I have created a script in which i need to implement the communication between the main program and a thread. The thread looks for any newly created files in a particular directory. It will be stored in a variable in the thread function. I want to get that name from the

[Tutor] Communicate between a thread and the main program

2010-03-08 Thread Plato P.B.
Hi all, I have created a script in which i need to implement the communication between the main program and a thread. The thread looks for any newly created files in a particular directory. It will be stored in a variable in the thread function. I want to get that name from the main program. How ca