Incremental Progress Report object/closure?
Fredrik Lundh
fredrik at pythonware.com
Sat Sep 2 02:32:53 EDT 2006
Gabriel Genellina wrote:
> What about a simple:
>
> print "Time elapsed: blah blah blah\r" % whatever,
>
> (notice the \r and the final , )
to avoid messing up the output when you're leaving the loop, or if
something goes wrong inside the loop, it's usually better to *start*
with a carriage return:
print "\rTime elapsed: blah blah blah" % whatever,
</F>
More information about the Python-list
mailing list