Flushing print()

Cameron Laird claird at lairds.us
Fri Feb 25 15:08:03 EST 2005


In article <cvm2s2$2gfl$1 at agate.berkeley.edu>,
Daniel Yoo  <dyoo at hkn.eecs.berkeley.edu> wrote:
>gf gf <unknownsoldier93 at yahoo.com> wrote:
			.
			.
			.
>: If not, how can I flush it manually?  sys.stdout.flush() didn't
>: seem to work.
>
>Hmmmm, that's odd.  sys.stdout.flush() should do it.  How are you
>testing that stdout isn't flushing as you expect?
>
>
>Best of wishes to you!

gf, remember to write

  sys.stdout.flush()

rather than

  sys.stdout.flush

That's a mistake that catches many.



More information about the Python-list mailing list