variable scope

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Tue Sep 29 11:11:57 EDT 2009


Carl Banks a écrit :
> On Sep 29, 3:11 am, Bruno Desthuilliers <bruno.
> 42.desthuilli... at websiteburo.invalid> wrote:
>> Mark Dickinson a écrit :
(snip)
>>> The double underscores and name mangling are a red herring:
>> I beg to disagree. The problem (well... what I think is a problem,
>> actually) IS that name mangling is applied to a method *local* variable.
> 
> 
> It's not (__a is a global),

Hmmm, yes, indeed.

> and I'll opine that the behavior is more
> consistent and more easily explained the way it is. 

As long as this behaviour is known and intentional, I won't discuss the 
point any further as far as I'm concerned !-)



More information about the Python-list mailing list