print in multithreaded environement ???

vincent delft vincent_delft at yahoo.com
Wed Feb 25 10:56:58 EST 2004


What will be the result if I have several threads that print to
different buffers ?

I have several threads, each one execute different python code. 
Just before the "exec" of this small python code, I redirect the
output to a "buffer".
Each thread has his own buffer.
What will be the result when they print at the same time ?

Does sys.stdout is a seperate instance for each thread ?
Does sys.stdout is shared between all of them ?

Does any one has experience with that ?

Thanks.



More information about the Python-list mailing list