Re: [Tutor] Communication between threads

2008-07-31 Thread Chad Crabtree
This is a great suggestion. I too learned how to do threading in python from reading code. For me I read the btdownloadheadless.py code. Which comes as part of the standard bittorrent client in linux. On Thu, Jul 31, 2008 at 7:11 AM, Monika Jisswel <[EMAIL PROTECTED]> wrote: >> I'm looking for

Re: [Tutor] Communication between threads

2008-07-31 Thread Monika Jisswel
> > I'm looking for some thoughts on how two separate threads can > communicate in Python > You will probably get out of your doubts by reading about the SocketServer module and SocketServer.ThreadingTCPServer class. Once your get a server up & running you can run parallel threads, from there you

Re: [Tutor] Communication between threads

2008-07-30 Thread Emile van Sebille
James wrote: All, I'm looking for some thoughts on how two separate threads can communicate in Python. From what I've read in a few Python books, sharing data between threads can be done by writing and reading a global variable in the parent of both threads. Is this the "best" way? Is it the *on

[Tutor] Communication between threads

2008-07-30 Thread James
All, I'm looking for some thoughts on how two separate threads can communicate in Python. From what I've read in a few Python books, sharing data between threads can be done by writing and reading a global variable in the parent of both threads. Is this the "best" way? Is it the *only* way? Also,