[Python-ideas] Tweaking closures and lexical scoping to include the function being defined

Ethan Furman ethan at stoneleaf.us
Tue Sep 27 19:08:43 CEST 2011

Nick Coghlan wrote:
> All that 'nonlocal' really says is 'not a local'. Since a function
> scoped variable *isn't* a local variable, I don't understand the
> preference for the even more vague 'static'.

nonlocal makes sense to me:

  - initialization: local? no
  - lifetime: local? no


More information about the Python-ideas mailing list