[Tutor] Communication between threads

Chad Crabtree flaxeater at gmail.com
Thu Jul 31 13:26:59 CEST 2008


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
<monjissvel at googlemail.com> 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 at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>


More information about the Tutor mailing list