Keyword arguments - strange behaviour?
fredrik at pythonware.com
Tue Dec 21 15:53:23 CET 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?
More information about the Python-list