Cameron Laird <[EMAIL PROTECTED]> wrote:
> gf, remember to write
>
>sys.stdout.flush()
>
> rather than
>
>sys.stdout.flush
>
> That's a mistake that catches many.
Many old perl programmers anyway (me included)!
Its also a mistake pychecker catches.
--
Nick Craig-Wood <[EMAIL PROT
In article <[EMAIL PROTECTED]>,
Daniel Yoo <[EMAIL PROTECTED]> wrote:
>gf gf <[EMAIL PROTECTED]> wrote:
.
.
.
>: If not, how can I flush it manually? sys.stdout.flush() didn't
>: seem to work.
>
>H, that's odd. sys.stdou
gf gf <[EMAIL PROTECTED]> wrote:
: Is there any way to make Python's print() flush
: automatically, similar to...mmm...that other
: language's $|=1 ?
Hello gf gf,
Yes; you can use the '-u' command line option to Python, which will
turn off stdout/stderr buffering.
: If not, how can I flush it