On Nov 17, 12:27 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> If multiple statements are needed to perform the
> argument initialization, how would you then propose the problem should
> be solved?

Why, with another function of course!

def f(x, y=`f_arg_computation(x)`): ...

Or my personal favourite:

def f(x, **`f_arg_computation(x)`): ...

Seriously, though, I agree with Steve; the function body -is- the
place for computation to occur.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to