declaration of variables?
mwm at mired.org
Sun Feb 16 01:36:30 CET 2003
Jp Calderone <exarkun at intarweb.us> writes:
> On Sat, Feb 15, 2003 at 06:05:09PM +0100, Andr? Jonsson wrote:
> > Being a Python-n00b, in the midst of this ?: discussion, it occurred to me
> > that Python does not require variables be delcared before use.
> > Surely, in an elightened language like Python it shouldn't be possible to
> > do this kind of error without the compiler complaining.
> "enlightened" language? Hrm. Dynamic, sure... OO, okay... functional,
> sometimes! But "enlightened"?
Consider the situation in another common P-named interpreter, where an
unassigned variable has the value of the empty string, which also has
the value of 0.
Compared to that, Python is enlightened!
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list