[Python-ideas] Off-topic: Happy Birthday, Don Knuth (and Python coroutines)

2021-01-10 Thread Jonathan Fine
Hi Don Knuth, author of The Art Of Computer Programming and creator of the TeX typesetting system is 83 today. Happy Birthday Don. Thank you for TeX and everything else. You're warmly invited to join me online to celebrate Don's life and work. The virtual party is on Thursday 14 January, 6:30 to

[Python-ideas] timeit improvement idea: add an option to measure a script execution time

2021-01-10 Thread Alex Prengère
Hello, Today I had a quite simple need, I am unsure about the best way to do it, and saw a possible improvement for the *timeit *module. I have about 30 Python scripts and I want to measure precisely their execution times, without measuring the interpreter startup time, because for most of them it

[Python-ideas] Re: timeit improvement idea: add an option to measure a script execution time

2021-01-10 Thread Chris Angelico
On Mon, Jan 11, 2021 at 4:42 AM Alex Prengère wrote: > > Hello, > Today I had a quite simple need, I am unsure about the best way to do it, and > saw a possible improvement for the timeit module. > > I have about 30 Python scripts and I want to measure precisely their > execution times, without

[Python-ideas] Re: timeit improvement idea: add an option to measure a script execution time

2021-01-10 Thread 2QdxY4RzWzUUiLuE
On 2021-01-10 at 18:38:12 +0100, Alex Prengère wrote: > Today I had a quite simple need, I am unsure about the best way to do > it, and saw a possible improvement for the *timeit *module. > > I have about 30 Python scripts and I want to measure precisely their > execution times, without measurin

[Python-ideas] Re: timeit improvement idea: add an option to measure a script execution time

2021-01-10 Thread Paul Moore
On 2021-01-10 at 18:38:12 +0100, Alex Prengère wrote: > 3. Use timeit. The scripts have no side effects so repeating their > execution the way timeit does, works for me. The only issue is that, > as far as I know, timeit only allows statements as input parameters, > not the whole script, like for

[Python-ideas] Re: timeit improvement idea: add an option to measure a script execution time

2021-01-10 Thread Chris Angelico
On Mon, Jan 11, 2021 at 6:06 AM Paul Moore wrote: > > On 2021-01-10 at 18:38:12 +0100, > Alex Prengère wrote: > > 3. Use timeit. The scripts have no side effects so repeating their > > execution the way timeit does, works for me. The only issue is that, > > as far as I know, timeit only allows st

[Python-ideas] Re: timeit improvement idea: add an option to measure a script execution time

2021-01-10 Thread Paul Moore
On Sun, 10 Jan 2021 at 19:24, Chris Angelico wrote: > > On Mon, Jan 11, 2021 at 6:06 AM Paul Moore wrote: > > > > On 2021-01-10 at 18:38:12 +0100, > > Alex Prengère wrote: > > > 3. Use timeit. The scripts have no side effects so repeating their > > > execution the way timeit does, works for me.