When Closure get external variable's value?

Fredrik Lundh fredrik at pythonware.com
Tue Dec 19 16:26:28 EST 2006


Bruno Desthuilliers wrote:

>> You skipped the first and most important sentence:

> "In programming languages, a closure is a function that refers to free 
> variables in its lexical context."
> 
> IOW, a closure is a function that carry it's own environment.

in contrast to functions that don't know what environment they belong 
to, you mean ?  can you identify such a construct in Python ?

</F>




More information about the Python-list mailing list