Is there a way to change the default value of arguments of the print function ?
particularly these arguments:
file=sys.stdout
flush=False
For example throughout my code I would like to toggle between flush=True
and flush=False
without having to manually add the argument value to every print statement I have. Preferably by adding 1 line of code vs going to every print function and manually changing the value of the argument.