Python Feature Request: Explicit variable declarations
jamadagni
samjnaa at gmail.com
Sat Apr 14 09:35:34 EDT 2007
> Languages like Perl and VB need a strict mode because they will
> auto-vivify variable for you. I.e. they will bring variables to life
> with defined or undefined values if you use them in a l-value (left hand
> side of an assignment) without having declared them prior. If you do
> that in Python you get an exception.
I don't comprehend. I can just type a = 5 in a new Python session and
I get no exception. Python currently does not require variables to be
declared before they are used on the LHS.
More information about the Python-list
mailing list