[Tutor] Logical Sorting

2006-07-07 Thread Evan Klitzke
. This is obviously not what I want. My question is: are there any modules or built in methods that will do a logical sort on a list like this, and sort it the way I want, or will I have to write my own sorting function? -- Evan Klitzke P.S. I know that the simplest way is just to use ls to sort by time

Re: [Tutor] Logical Sorting

2006-07-07 Thread Evan Klitzke
On 7/7/06, Evan Klitzke [EMAIL PROTECTED] wrote: Hi, I am trying to sort a list of directories that correspond to kernel sources under /usr/src/linux. Err, this is under /usr/src... not that it is really pertinent to my question. -- Evan Klitzke

[Tutor] Variables don't change when altered within a loop?

2006-06-29 Thread Evan Klitzke
Hi, I just started picking up python yesterday, and have already come across something that has me stumped. I want some code that does this: a = foo(a) b = foo(b) c = foo(c) So I try to do this with a for loop, like so: for i in [a, b, c]: i = foo(i) print i # make sure that it