Class-level variables - a scoping issue

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Oct 11 03:02:43 EDT 2010


In message <8hfq23FetrU1 at mid.individual.net>, Gregory Ewing wrote:

> Lawrence D'Oliveiro wrote:
> 
>> It seems to me the same principle, that of disallowing implicit
>> overriding of a name from an outer scope with that from an inner one
>> after the former has already been referenced, should be applied here as
>> well.
> 
> How would you intend to enforce such a restriction?

The same way it’s already enforced.



More information about the Python-list mailing list