[Python-ideas] nonlocal functions

Masklinn masklinn at masklinn.net
Tue Oct 20 20:47:37 CEST 2009

On 20 Oct 2009, at 20:23 , Stefan Behnel wrote:
> Masklinn wrote:
>> On 20 Oct 2009, at 19:55 , Stefan Behnel wrote:
>>> And how often would you forget to declare a variable that way?
>> Never.
> :) Had a good laugh on that one, thanks!
Why? It's a very simple process: "I'm creating a binding" matches to a  
let. Plus the runtime could easily warn you in the rare cases where  
you'd forgotten a let.

I can assure you it's not a very difficult habit to pick.

More information about the Python-ideas mailing list