Debugging on windows via print statements -- reliable?
Delaney, Timothy
tdelaney at avaya.com
Sun Mar 24 23:57:50 EST 2002
> From: Peter Hansen [mailto:peter at engcorp.com]
>
> I don't recall if print flushes its output after each call, but if you
> want to be certain it does, try calling sys.stdout.flush() after your
> print calls. This is a console app, right?, and you aren't
> redirecting
> the output to a file?
Make sure you run python as
python -u
to get unbuffered output ...
Tim Delaney
More information about the Python-list
mailing list