[Python-ideas] Tweaking closures and lexical scoping to include the function being defined
p.f.moore at gmail.com
Mon Sep 26 13:33:52 CEST 2011
On 26 September 2011 07:56, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> So, your proposed use of 'nonlocal' would actually be declaring
> a name to be *local*. That strikes me as weird and perverse.
Aha! That's precisely the concern I had with the suggestion of
"nonlocal" for this, although I had failed to understand *why* it
bothered me, and so hadn't commented...
More information about the Python-ideas