[Python-ideas] Explicit variable capture list

Nick Coghlan ncoghlan at gmail.com
Thu Jan 21 02:54:15 EST 2016


On 21 January 2016 at 06:42, Andrew Barnert via Python-ideas
<python-ideas at python.org> wrote:
> On Wednesday, January 20, 2016 11:05 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
>
>> FWIW I strongly believe that this feature (at least the
>> "len=len"-like optimizations) should be implemented as an
>> optimization in the interpreter.
>
> The problem is that there are two reasonable interpretations for free variables--variable capture or value capture--and Python can only do one or the other automatically.

Can we please use the longstanding early binding and late binding
terminology for these two variants, rather than introducing new
phrases that just confuse the matter...

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list