[IronPython] print is not thread safe ?

Sakesun Roykiattisak sakesun at boonthavorn.com
Fri May 16 06:18:16 CEST 2008


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.

   The problem can be suppressed by replace "print" with  
"System.Console.WriteLine"

   Perhaps I should try proper logging module.

Regards



More information about the Ironpython-users mailing list