printing problem

Hans Nowak hnowak at cuci.nl
Sun Mar 5 14:01:33 EST 2000


On 5 Mar 00, at 10:55, sanjay pradeep wrote:

> hi this is regarding my previous message, "printing 
> problem".
> the program should print out each character at the
> time that the character is entered. right now it
> buffers all three characters and prints them out at
> once, at the end of the program.
> thanks, matt

Try sys.stdout.flush() after the print statement.

HTH,

--Hans Nowak (zephyrfalcon at hvision.nl)
Homepage: http://www.hvision.nl/~ivnowa/newsite/
Python questions? See http://tor.dhs.org/~zephyrfalcon/snippets
You call me a masterless man. You are wrong. I am my own master.




More information about the Python-list mailing list