Re: Local variables persist across function calls

2010-05-15 Thread Chris Rebert
On Sat, May 15, 2010 at 10:18 AM, Dave wrote: > I've been writing Python for a few years now, and tonight I ran into > something that I didn't understand. I'm hoping someone can explain > this to me. I'm writing a recursive function for generating > dictionaries with keys that consist of all permu

Re: Local variables persist across function calls

2010-05-15 Thread Alf P. Steinbach
On 15.05.2010 19:18, * Dave: I've been writing Python for a few years now, and tonight I ran into something that I didn't understand. I'm hoping someone can explain this to me. I'm writing a recursive function for generating dictionaries with keys that consist of all permutations of a certain set

Local variables persist across function calls

2010-05-15 Thread Dave
I've been writing Python for a few years now, and tonight I ran into something that I didn't understand. I'm hoping someone can explain this to me. I'm writing a recursive function for generating dictionaries with keys that consist of all permutations of a certain set. Here's the function: def ma