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 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 can build > > a global dictionary & use it to share data between you threads. > > > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor