What does sys.stdout.flush() do?

2013-08-23 Thread D. Xenakis
Somewhere i read.. sys.stdout.flush(): Flush on a file object pushes out all the data that has been buffered to that point. Can someone post here a script example with sys.stdout.flush(), where in case i commented that i could understand what the difference really would be? Whenever i try to

Re: What does sys.stdout.flush() do?

2013-08-23 Thread Peter Otten
D. Xenakis wrote: Somewhere i read.. sys.stdout.flush(): Flush on a file object pushes out all the data that has been buffered to that point. Can someone post here a script example with sys.stdout.flush(), where in case i commented that i could understand what the difference really would

Re: What does sys.stdout.flush() do?

2013-08-23 Thread John Gordon
In c34119f1-3e04-419d-8dd9-07dd4c648...@googlegroups.com D. Xenakis gouzouna...@hotmail.com writes: Can someone post here a script example with sys.stdout.flush(), where in case i commented that i could understand what the difference really would be? Depending what sys.stdout is connected to