Need help with Python scoping rules
Ethan Furman
ethan at stoneleaf.us
Wed Aug 26 17:23:47 EDT 2009
kj wrote:
> I think I understand the answers well enough. What I *really*
> don't understand is why this particular "feature" of Python (i.e.
> that functions defined within a class statement are forbidden from
> "seeing" other identifiers defined within the class statement) is
> generally considered to be perfectly OK. IMO it's a bizarre,
> inexplicable blindspot (which, among other things, gives rise to
> a certain worry about what other similar craziness lurks under
> Python's image of rationality). I have never seen even a half-hearted
> justification, from a language design point of view, for why this
> particular "feature" is worth having. Maybe some day the BDFL will
> deign to give one.
>
> kynn
You keep using that word. I do not think it means what you think it
means. :)
Keep studying. Listen. Learn how it *is*. Understanding may come later.
~Ethan~
More information about the Python-list
mailing list