William James wrote:
> On May 8, 6:09 pm, Jason <rsfr... / yahoo.com> wrote:
>> I use Python.
> 
<snip unpleasantness>
> Let's say we're doing some intense calculations
> and we want to show a simple progress indicator:
> 
> 40.times {
>   print "."
>   time_consuming_routine
> }
> puts "\nFinished."
> 
> And the output is
> ........................................
> Finished.
<snip>
> Can you figure out how to do this trivial task
> in Python?
Not hard.  Trivial, in fact.

for i in range(0,40):
   sys.stdout.write('.')
   time_consuming_routine()

sys.stdout.write("\nFinished.")

-- 
Alex