[Python-Dev] new draft of PEP 227
Guido van Rossum
guido@python.org
Fri, 15 Dec 2000 11:23:07 -0500
> Python is the only one I know of that implicitly shadows without
> requiring some form of declaration. JavaScript has it right: reading and
> writing of globals are symmetrical. In the rare case that you explicitly
> want to shadow, you need a declaration. Python's rule is confusing,
> implicit and error causing. In my opinion, of course. If you are
> dead-set against explicit declarations then I would say that disallowing
> the ambiguous construct is better than silently treating it as a
> declaration.
Let's agree to differ. This will never change. In Python, assignment
is declaration.
--Guido van Rossum (home page: http://www.python.org/~guido/)