Re: unbuffering std streams in code

2005-05-28 Thread Fredrik Lundh
John Reese wrote: > You know how you can specify that stderr, stdin, stdout should be > unbuffered by running python with the -u switch? Is there any way I > can have the same affect in code by doing something to the sys.std* > variables? try this: >>> import os, sys >>> sys.stdout = os.fdopen(

unbuffering std streams in code

2005-05-27 Thread John Reese
You know how you can specify that stderr, stdin, stdout should be unbuffered by running python with the -u switch? Is there any way I can have the same affect in code by doing something to the sys.std* variables? -- http://mail.python.org/mailman/listinfo/python-list