[Tutor] A fun puzzle
Kent Johnson
kent37 at tds.net
Fri Aug 24 23:06:47 CEST 2007
Dick Moores wrote:
>> Using your exact code, I just got
>> 0.737564690484
>> 1.17399585702
>> Which is the reverse of your result, but on a slower computer.
>
> That result was gotten using Ulipad. Thought I'd try it at my command
> line (several times, of course--I've reported what seemed to be
> representative data).
>
> Using command line:
> 0.673447044247
> 0.511676204657
>
> Using IDLE:
> 0.845213567646
> 0.685519807685
>
> Using Wing Pro (executing with Alt+F5)
> 0.940486290855
> 0.998467123615
Curiouser and curiouser...
> Is it possible that the timeit module should be used only at the command line?
No, you should be able to use it anywhere Python works. I get very
similar results running it Terminal and from TextMate...
Kent
More information about the Tutor
mailing list