[IronPython] print is not thread safe ?
Dino Viehland
dinov at exchange.microsoft.com
Fri May 16 17:22:21 CEST 2008
I think this really means that file is not thread safe. I agree that it should be thread safe, I've opened CodePlex bug 16623 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=16623) to track the issue. Thanks for the report!
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Friday, May 16, 2008 1:07 AM
To: Discussion of IronPython
Subject: Re: [IronPython] print is not thread safe ?
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
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list