Jay Parlar <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Your problem is that the 'print' statement is sending the text to
> sys.stdout, and sys.stdout is buffered.
I thought it was something like this, but I couldn't find it in the docs :
(.
> print 'Start: %f,'% st,
> sys.stdout.flu
On Apr 13, 2006, at 5:57 PM, Karlo Lozovina wrote:
> Consider this short script:
>
> ---
> from time import time, sleep
>
> st = time()
> print 'Start: %f, ' % st,
> sleep(10)
> sp = time()
> print 'Stop: %f, Duration: %f' % (sp, (st - sp))
> ---
>
> On my environment (Linux, py24), when run, Pyt
Consider this short script:
---
from time import time, sleep
st = time()
print 'Start: %f, ' % st,
sleep(10)
sp = time()
print 'Stop: %f, Duration: %f' % (sp, (st - sp))
---
On my environment (Linux, py24), when run, Python first waits 10s, and
then produces the entire output. How, can I make i