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

Carl Matthew Johnson cmjohnson.mailinglist at gmail.com
Wed Sep 28 12:07:55 CEST 2011

On Sep 27, 2011, at 1:08 PM, Jan Kaliszewski wrote:

> 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...)
> `boundlocal`? 

I think ``rebind expression as name`` reads fine. Not sure if "rebind" exactly gives the right impression though.

More information about the Python-ideas mailing list