[IronPython] print is not thread safe ?
Michael Foord
fuzzyman at voidspace.org.uk
Fri May 16 01:06:58 PDT 2008
Sakesun Roykiattisak wrote:
>
> Hi,
>
> Just found that the "print" statement is not thread-safe (IP
> 1.1.1). I variably
> get various "ValueError" like "Count cannot be less than zero.
> Parameter name: count"
> in my multi-thread app.
>
FWIW we've sometimes seen this, although it is hard to reproduce
reliably. 'print' really ought to be thread safe...
Michael Foord
http://www.ironpythoninaction.com/
> The problem can be suppressed by replace "print" with
> "System.Console.WriteLine"
>
> Perhaps I should try proper logging module.
>
> Regards
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Users
mailing list