[IronPython] print is not thread safe ?

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


   Just found that the "print" statement is not thread-safe (IP 1.1.1).  I  
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  

   Perhaps I should try proper logging module.


More information about the Ironpython-users mailing list