[Python-Dev] closure semantics
Guido van Rossum
guido at python.org
Wed Nov 5 17:29:32 EST 2003
> Alex Martelli wrote:
> >So it can't be global, as it must stay a keyword for backwards
> >compatibility at least until 3.0.
> Why? Removing keywords should be much simpler than adding them. I
> have no idea how hard it is to hack the parser to adjust, but I
> can't imagine how having 'global' no longer be a keyword as far as
> its concerned break b/w compatibility.
> What am I missing?
I don't recall the context, but I think the real issue with removing
'global' is that there's too much code out there that uses the global
syntax to remove the global statement before 3.0.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev