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 *only* way?

I happened to see an article on this -- let's see...

http://www.ibm.com/developerworks/aix/library/au-threadingpython/index.html

Specifically the queues discussion.

HTH,

Emile

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to