Re: [Tutor] I can't believe this needs to be this complex

2008-08-03 Thread Dick Moores
At 05:15 AM 8/3/2008, Kent Johnson wrote: On Sun, Aug 3, 2008 at 4:00 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > "Dick Moores" <[EMAIL PROTECTED]> wrote > code I time. What's an example of code that would have System be greater than zero? And what's the distinction between User and Sys

Re: [Tutor] I can't believe this needs to be this complex

2008-08-03 Thread Dick Moores
At 05:15 AM 8/3/2008, Kent Johnson wrote: On Sun, Aug 3, 2008 at 4:00 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > "Dick Moores" <[EMAIL PROTECTED]> wrote > code I time. What's an example of code that would have System be greater than zero? And what's the distinction between User and Sys

Re: [Tutor] I can't believe this needs to be this complex

2008-08-03 Thread Kent Johnson
On Sun, Aug 3, 2008 at 4:00 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > "Dick Moores" <[EMAIL PROTECTED]> wrote > code I time. What's an example of code that would have System be greater than zero? And what's the distinction between User and System? (I'm using Win XP, if that's relev

Re: [Tutor] I can't believe this needs to be this complex

2008-08-03 Thread Dick Moores
At 01:00 AM 8/3/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote code I time. What's an example of code that would have System be greater than zero? And what's the distinction between User and System? (I'm using Win XP, if that's relevant.) It may be that XP doesn't report Sys

Re: [Tutor] I can't believe this needs to be this complex

2008-08-03 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote code I time. What's an example of code that would have System be greater than zero? And what's the distinction between User and System? (I'm using Win XP, if that's relevant.) It may be that XP doesn't report System time. Well, here's one that reads in

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Dick Moores
At 10:08 AM 8/2/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote BTW Kent, I'm going to take this opportunity to ask you about "System" in the IPython timing results. It's always zero for the code I time. What's an example of code that would have System be greater than zero? An

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote BTW Kent, I'm going to take this opportunity to ask you about "System" in the IPython timing results. It's always zero for the code I time. What's an example of code that would have System be greater than zero? And what's the distinction between User and

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Dick Moores
At 05:02 AM 8/2/2008, Kent Johnson wrote: On Sat, Aug 2, 2008 at 6:07 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm pretty new to Python's dictionaries, but I had a need for a function > that would find the values in a dict that have more than one key each. From your sample output it appears

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Kent Johnson
On Sat, Aug 2, 2008 at 6:07 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm pretty new to Python's dictionaries, but I had a need for a function > that would find the values in a dict that have more than one key each. >From your sample output it appears that you want not just the values, but a li

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Dick Moores
At 03:49 AM 8/2/2008, Dick Moores wrote: At 03:27 AM 8/2/2008, Andre Engels wrote: Content-Transfer-Encoding: base64Content-Disposition: inlineOn Sat, Aug 2, 2008 at 11:07 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm pretty new to Python's dictionaries, but I had a need for a function > th

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Dick Moores
At 03:27 AM 8/2/2008, Andre Engels wrote: Content-Transfer-Encoding: base64Content-Disposition: inlineOn Sat, Aug 2, 2008 at 11:07 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm pretty new to Python's dictionaries, but I had a need for a function > that would find the values in a dict that ha

Re: [Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Andre Engels
On Sat, Aug 2, 2008 at 11:07 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm pretty new to Python's dictionaries, but I had a need for a function > that would find the values in a dict that have more than one key each. It > took me several hours to write. See >

[Tutor] I can't believe this needs to be this complex

2008-08-02 Thread Dick Moores
I'm pretty new to Python's dictionaries, but I had a need for a function that would find the values in a dict that have more than one key each. It took me several hours to write. See . Seems to do the job, both with the example shown, and with the dict