stdout and threads

Troels Thomsen nejtak...
Mon May 28 05:54:19 EDT 2007


Hello All

I have trouble printing to stdout from a thread and main program.

Not only will it look strange when they try to print at the same time, that 
is ok, but i think i see lock-ups. (strange exceptions in Tkinker etc) Or is 
it an issue with IDLE ?

Should I implement a lock'ed / queued version and hook it into the 
sys.stdout ?

(sorry if this has been answered recently in this group)

using
Python 2.5 (r25:51908
Idle 1.2

tpt






More information about the Python-list mailing list