[SVN] Python output timing bug

Jeroen van der Ham jeroen at je-ju.net
Wed May 7 11:22:49 UTC 2008


Hi,

I just ran into a small mistake in the Python output parsing. 
Unfortunately I don't have time to fix it myself right now.
So I was hoping that someone else could look into it.

The bug is that stderr output is delayed:

import sys
sys.stderr.write("first\n")
sys.stdout.write("second\n")

Produces in TextMate:

second
first

This probably has to do with buffering somewhere. But inserting a delay 
(time.sleep(0.000001) ) will provide the right output.


Jeroen.



More information about the textmate-dev mailing list