print statement and multithreading

Matthew Schroeder MSchroeder at CreativeSolutions.com
Tue Aug 22 13:03:30 EDT 2000


that could be, if the IO streams are buffering the output, because they'd
flush at different times.

In Perl we were able to specify autoflush for the buffers, which would keep
them in order, as they wouldn't buffer output then.

I don't know if you can do the same in Python though.

-----Original Message-----
From: Ken Kinder [mailto:kkinder at tridog.com]
Sent: Tuesday, August 22, 2000 12:40 PM
To: Roy Katz
Cc: python-list at python.org
Subject: Re: print statement and multithreading


It should work the same. The only thing you might worry a little about
is the order things come out -- sometimes i/o streams seem out of order.




More information about the Python-list mailing list