From: Alex Young Date: 2007-05-10T09:37:40+09:00 Subject: Re: Ruby Performance - LOW ? William James wrote: > On May 8, 6:09 pm, Jason wrote: >> I use Python. > > 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. > 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