Python pprint flush stdout per invocation

375 Views Asked by At

Is there a way to flush the stdout of pprint on a single invocation? I know we can start the interpreter unbuffered, with e.g. python -u, but I really just want this behavior for a one-time call.

0

There are 0 best solutions below