Closed bmwiedemann closed 5 years ago
@aspiers unless one flushes, python goes for either line-buffered, or block buffered (one can work around with PYTHONUNBUFFERED
for example
a different option would be to use print(..., flush=True)
based on https://stackoverflow.com/questions/107705/disable-output-buffering i would consider using flush as the most clean version
Looks like flush=True
is only for Python >= 3.3 so let's go with this for now.
Without this patch, git-deps | tee $FILE only produces output in 4KB chunks so when you have to kill the process after a day, you are left with incomplete output.