Open Jacob-Stevens-Haas opened 6 months ago
I want to flush the model.print() output. I expected it to work the same as the builtin print() function, but it doesn't expect a flush kwarg.
model.print()
print()
flush
model.print(flush=True) works the same as print("foo", flush=True)
model.print(flush=True)
print("foo", flush=True)
sys.stdout.flush(), assuming model.print() is connected to sys.stdout
sys.stdout.flush()
sys.stdout
Good first issue - if someone wants to take this up, lookup what other kwargs print might accept, too.
Is your feature request related to a problem? Please describe.
I want to flush the
model.print()
output. I expected it to work the same as the builtinprint()
function, but it doesn't expect aflush
kwarg.Describe the solution you'd like
model.print(flush=True)
works the same asprint("foo", flush=True)
Describe alternatives you've considered
sys.stdout.flush()
, assumingmodel.print()
is connected tosys.stdout
Additional context
Good first issue - if someone wants to take this up, lookup what other kwargs print might accept, too.