Keyword arguments - strange behaviour?
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 21 09:53:23 EST 2004
<brian.bird at securetrading.com> wrote:
> def function(arg=otherfunction(value)):
> return arg
>
> My expectation would have been that otherfunction(value) would be
> called if (and only if) the arg keyword parameter was missing from the
> function() call (ie. the optional value is evaluated the lazy way).
what otherfunction? what value?
</F>
More information about the Python-list
mailing list