Why no lexical scoping for a method within a class?

walterbyrd walterbyrd at iname.com
Wed Dec 17 13:20:21 EST 2008


On Dec 17, 10:00 am, r <rt8... at gmail.com> wrote:
> When writing
> procedural code how would you like it if vars inside functions were
> automatically global. Your code with be blowing chunks in no time.

That was my point - I consider python's ordinary use of lexical
scoping to be a good thing, and I was wondering why this "good thing"
was not used in classes, as well as outside of classes.




More information about the Python-list mailing list