How do I control output buffering on Win32?

Grant Edwards grante at visi.com
Fri Aug 15 11:13:14 EDT 2008


On 2008-08-15, Grant Edwards <grante at visi.com> wrote:

>> I'm not sure you can do that from within the program [1]; to
>> do it from the outside, set the PYTHONUNBUFFERED environment
>> variable to something, or pass "-u" to the interpreter.
>
> I had seen references to PYTHONUNBUFFERED in my Google search,
> but it wasn't mentioned when I did a "python -h"
> assumed it was a Unix-only thing.

Doh. Yes it was.  I don't know how I missed it...

-- 
Grant Edwards                   grante             Yow! Uh-oh!!  I forgot
                                  at               to submit to COMPULSORY
                               visi.com            URINALYSIS!



More information about the Python-list mailing list