codon icon indicating copy to clipboard operation
codon copied to clipboard

Unbuffered output

Open dawe opened this issue 1 year ago • 1 comments

I'm running some codon generated executables in batch mode and I realized it sends to stdout just as Python (kind of expected), that is a buffered output. I know in Python I can run a script using the -u switch to have unbuffered stdout, is there something similar for codon?

dawe avatar Jan 17 '24 08:01 dawe

Not yet—we can add this in the later versions (wasn't even aware of -u until now). For now, you'll have to flush the stdout manually (stdout.flush() should work) or use stderr.

inumanag avatar Jan 29 '24 19:01 inumanag