Python's Print Function That Flushes The Buffer When It's Called?
Possible Duplicates: How to flush output of Python print? unbuffered stdout in python (as in python -u) from within the program I have the following code to flushing out the out
You can start python in unbuffered mode using the -u flag, e.g.
python -u script.py
or
#!/usr/bin/env python -u
as "shebang" header for your script.
Post a Comment for "Python's Print Function That Flushes The Buffer When It's Called?"