[Python-ideas] nonlocal functions

Stefan Behnel stefan_ml at behnel.de
Tue Oct 20 19:55:22 CEST 2009


Masklinn wrote:
> If you go that route, I'd suggest removing all the legacy stuff and just
> using "let" to create a new binding in the current scope:
> 
> def foo():
>     let a = 1
>     let b = 3

No, please. Why would you want to require so much typing for the most
common case? And how often would you forget to declare a variable that way?

Stefan




More information about the Python-ideas mailing list