+= as declaration wish

Suchandra S Thapa ssthapa at barnacle-bill.cs.uchicago.edu
Fri Feb 16 13:49:19 EST 2001


	I agree with you.  I think having  x += y create a new
x would create more problems than it solves.  Currently typos in the 
variable name would raise an error that is easily caught and fixed, having
a new variable silently created just seems like a bad idea. I personally would
love it if python went the other way and allowed an optional mode that 
required variables to be declared before they were used. 




More information about the Python-list mailing list