The print
function in Python 3 may receive a boolean value to whether flush immediately or not:
print("foobar", flush=True)
I wish to have the print
function flush by default for everything it prints, is it possible? Work-around, ad-hoc settings, whatever.