Re: [Tutor] compile time calculator

2012-01-28 Thread Evert Rol
> Well, using python documentation, I did this.. > > (calculating execution time). > > def main(): > ## This is my whole puzzle code... > > > fobj_ip = open('D:/code/py/input.txt', 'r') > fobj_op = open('D:/code/py/output.txt','w') > > line=1 > for eachLine in fobj_ip: >

Re: [Tutor] compile time calculator

2012-01-28 Thread Surya K
Date: Fri, 27 Jan 2012 17:35:39 -0800 Subject: Re: [Tutor] compile time calculator From: marc.tompk...@gmail.com To: sur...@live.com CC: tutor@python.org On Fri, Jan 27, 2012 at 7:46 AM, Surya K wrote: Hi, I want to calculate compile time for my puzzles. Since nobody else has mentioned

Re: [Tutor] compile time calculator

2012-01-27 Thread Marc Tompkins
On Fri, Jan 27, 2012 at 7:46 AM, Surya K wrote: > Hi, > > I want to calculate compile time for my puzzles. > Since nobody else has mentioned it yet... http://xkcd.com/303/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription o

Re: [Tutor] compile time calculator

2012-01-27 Thread Steven D'Aprano
Surya K wrote: can anyone write a program for me? please... Certainly. My rate is AUD$80 per hour. Please write to me privately to discuss financial arrangements. -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscr

Re: [Tutor] compile time calculator

2012-01-27 Thread Alan Gauld
On 27/01/12 15:46, Surya K wrote: I want to calculate compile time for my puzzles. I'm pretty sure from what follows you don't! But just to be clear, compile time is the time Python spends converting your modules into .pyc files the first time they are imported after a change. Why you would

Re: [Tutor] compile time calculator

2012-01-27 Thread Blockheads Oi Oi
On 27/01/2012 15:46, Surya K wrote: Hi, I want to calculate compile time for my puzzles. Although I read about timeit(), I didn't really understand how it should be applied it. So, can anyone write a function for me please!! I am looking for a function which should solve my puzzle and also show

[Tutor] compile time calculator

2012-01-27 Thread Surya K
Hi, I want to calculate compile time for my puzzles. Although I read about timeit(), I didn't really understand how it should be applied it.So, can anyone write a function for me please!! I am looking for a function which should solve my puzzle and also show compile time. (Later, I should be ab