On Sunday, 23 September 2012 23:20:37 UTC+5:30, Dennis Lee Bieber wrote: > On Sun, 23 Sep 2012 18:13:57 +0100, Mark Lawrence > > <breamore...@yahoo.co.uk> declaimed the following in > > gmane.comp.python.general: > > > > > On 23/09/2012 16:49, Ramchandra Apte wrote: > > > > > > You can clear the buffer by calling file.flush() > > > > > > > > > > Shock, horror, probe, well I never did. I'm sure that everyone is > > > updating their Xmas and birthday card lists to ensure that you're not > > > missed out having furnished a piece of information that doubtless not > > > one other person on this group knew. > > > > It probably wouldn't have helped either... The OP was looking for, > > as I recall, some means by which a pending input would not block other > > output on a console... So what use is flushing a buffer? > > -- > > Wulfraed Dennis Lee Bieber AF6VN > > wlfr...@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Okay okay! My message was out-of-context. Anyways, nobody in my age group knows that you can clear the buffer of a file in Python by calling file.flush(). -- http://mail.python.org/mailman/listinfo/python-list