Re: Flushing print()

2005-02-28 Thread Nick Craig-Wood
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

Re: Flushing print()

2005-02-25 Thread Cameron Laird
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

Re: Flushing print()

2005-02-24 Thread Daniel Yoo
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