Re: [Python-Dev] why duplicate output lines in verbose tests?

On Tue, Aug 12, 2008 at 11:32 AM, Bill Janssen <janssen@parc.com> wrote:
Is it using fork()? Threads?
No on fork(), yes on threads.
Hmm... I don't believe that io.py is thread-safe. :-( -- --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum <guido <at> python.org> writes:
There is an issue open for the BufferedWriter + threads problem (which is probably what causes Bill's problem above). http://bugs.python.org/issue3476 As Martin suggested in this issue's comments, a simple fix would be to wrap most methods with an instance-specific mutex. I don't know how that would affect performance. Regards Antoine.

Antoine Pitrou wrote:
For 3.0, I think correctness is more important than speed. At this stage, we may have to live with the fact that some aspects of 3.0 are going to be slower than they are in 2.6 (the Decimal module comes to mind, and it looks like IO may be another one). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org

Guido van Rossum <guido <at> python.org> writes:
There is an issue open for the BufferedWriter + threads problem (which is probably what causes Bill's problem above). http://bugs.python.org/issue3476 As Martin suggested in this issue's comments, a simple fix would be to wrap most methods with an instance-specific mutex. I don't know how that would affect performance. Regards Antoine.

Antoine Pitrou wrote:
For 3.0, I think correctness is more important than speed. At this stage, we may have to live with the fact that some aspects of 3.0 are going to be slower than they are in 2.6 (the Decimal module comes to mind, and it looks like IO may be another one). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
participants (3)
-
Antoine Pitrou
-
Guido van Rossum
-
Nick Coghlan