[Python-3000] Sky pie: a "var" keyword
mbk.lists at gmail.com
Tue Oct 10 18:54:24 CEST 2006
> there's no connection whatsoever between things that are raised now and
> then in various forums, and things that are real "seriously hurts people
> trying to get things done in Python" warts.
> the vast majority of all Python programmers never uses nested functions
> at all.
Yes, but part of the reason for this may be this very wart. I know
I'm campaigning for this as a fix for what the OP calls the "read only
lexical scoping gotcha". A fix for that makes it much more convienent
to write closures that modify closed-over values, which in turn makes
a much more compelling use case for using nested functions.
Of couse, you may think that's a bad thing. Personally, I'd really like it.
In any event, as you pointed out yourself, at last check Guido is +1
on this general idea. Maybe you should ask him why he's in favor of
More information about the Python-3000