[Python-3000] Sky pie: a "var" keyword

Fredrik Lundh fredrik at pythonware.com
Mon Oct 9 17:14:02 CEST 2006


Marcin 'Qrczak' Kowalczyk wrote:

> It should be:
> 
> var x = 0
> def f():
>    print x
>    x = 3
> 
> for the global variable, and:
> 
> var x = 0
> def f():
>    var x
>    print x
>    x = 3
> 
> for the local variable.

so the goal of this exercise is to make it easier to introduce 
hard-to-spot errors by accident?

</F>



More information about the Python-3000 mailing list