[Tutor] Variable declaration

Hansen, Mike Mike.Hansen at atmel.com
Fri Feb 5 17:40:51 CET 2010


Perl has "use strict;" to force variable declaration. 

My insane Perl loving co-workers think it's evil that Python doesn't have variable declaration. =)

What are some of the reasons/arguments on why Python doesn't need variable declaration? I've gotten around it in Python by using Pyflakes to check my code and catch those silly mis-spelling of a variable.

Mike

 



 


More information about the Tutor mailing list