Re: function nested

2007-05-24 Thread Bruno Desthuilliers
Gigs_ a écrit : > > i have this function. > > def f(start): > stack = [] > def f1(start): > for fname in os.listdir(startDir): >path = os.path.join(startDir, fname) >if os.path.isfile(path): >stack.append(path) >else: >

Re: function nested

2007-05-24 Thread Amit Khemka
On 5/24/07, Gigs_ <[EMAIL PROTECTED]> wrote: > def f(start): > stack = [] > def f1(start): > for fname in os.listdir(start): > path = os.path.join(start, fname) > if os.path.isfile(path): > stack.append(path) > else: >

Re: function nested

2007-05-24 Thread Gigs_
def f(start): stack = [] def f1(start): for fname in os.listdir(start): path = os.path.join(start, fname) if os.path.isfile(path): stack.append(path) else: f1(path) f1(start) return stack i feel s stu

Re: function nested

2007-05-24 Thread Peter Otten
Gigs_ wrote: > i have this function. > > def f(start): > stack = [] > def f1(start): > for fname in os.listdir(startDir): > path = os.path.join(startDir, fname) > if os.path.isfile(path): > stack.append(path) > else: >

function nested

2007-05-24 Thread Gigs_
i have this function. def f(start): stack = [] def f1(start): for fname in os.listdir(startDir): path = os.path.join(startDir, fname) if os.path.isfile(path): stack.append(path) else: f1(path) return stack