Nested scopes: design or implementation?
Emile van Sebille
emile at fenx.com
Tue Mar 5 21:53:29 EST 2002
"logistix" <logstx at bellatlantic.net> wrote in message
news:vcfh8.405$tL.70 at nwrddc02.gnilink.net...
> Is the following code operating this way by design or is it just
> implementation? It seems to indicate that the nested function is
redefined
> each time the parent function is called. Is this necessary or
desirable?
>
It is both. In particular, if the outer function builds and returns a
curried function, you likely want it redefined each time the outer
function is called.
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list