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

Jan Kaliszewski zuo at chopin.edu.pl
Wed Sep 28 01:08:09 CEST 2011

Guido van Rossum dixit (2011-09-26, 19:48):

> OTOH I am happy to let you all bikeshed on a better name.

`deflocal`? (definition-time-bound local-scoped var...)
`ownlocal`? (function's own local-scoped var...)

-- that would be nice to have it somehow similar to the `nonlocal`
keyword; suggesting *something different from* though *somehow similar
or complementary* to the `nonlocal` mechanism.


More information about the Python-ideas mailing list