Re: How to modify local variables from internal functions?

2009-10-25 Thread Steven D'Aprano
On Sat, 24 Oct 2009 00:19:12 +, kj wrote: > I like Python a lot, and in fact I'm doing most of my scripting in > Python these days, but one thing that I absolutely *DETEST* > about Python is that it does allow an internal function to modify > variables in the enclosing local scope. Yo

Re: How to modify local variables from internal functions?

2009-10-25 Thread Steven D'Aprano
On Sat, 24 Oct 2009 00:19:12 +, kj wrote: > I like Python a lot, and in fact I'm doing most of my scripting in > Python these days, but one thing that I absolutely *DETEST* > about Python is that it does allow an internal function to modify > variables in the enclosing local scope. Yo

Re: How to modify local variables from internal functions?

2009-10-23 Thread MRAB
kj wrote: I like Python a lot, and in fact I'm doing most of my scripting in Python these days, but one thing that I absolutely *DETEST* about Python is that it does allow an internal function to modify variables in the enclosing local scope. This willful hobbling of internal functions

Re: How to modify local variables from internal functions?

2009-10-23 Thread Stephen Hansen
On Fri, Oct 23, 2009 at 5:19 PM, kj wrote: > I like Python a lot, and in fact I'm doing most of my scripting in > Python these days, but one thing that I absolutely *DETEST* > about Python is that it does allow an internal function to modify > variables in the enclosing local scope. This

Re: How to modify local variables from internal functions?

2009-10-23 Thread Chris Rebert
On Fri, Oct 23, 2009 at 5:19 PM, kj wrote: > I like Python a lot, and in fact I'm doing most of my scripting in > Python these days, but one thing that I absolutely *DETEST* > about Python is that it does allow an internal function to modify > variables in the enclosing local scope.  This

How to modify local variables from internal functions?

2009-10-23 Thread kj
I like Python a lot, and in fact I'm doing most of my scripting in Python these days, but one thing that I absolutely *DETEST* about Python is that it does allow an internal function to modify variables in the enclosing local scope. This willful hobbling of internal functions seems to m