Keyword arguments - strange behaviour?

Fredrik Lundh fredrik at
Tue Dec 21 15:53:23 CET 2004

<brian.bird at> 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 mailing list