howto resend args and kwargs to other func?

Duncan Booth duncan.booth at invalid.invalid
Sun Jul 1 05:00:45 EDT 2007


dmitrey <openopt at ukr.net> wrote:

> I need something like this:
> 
> def func1(*args, **kwargs):
>   if some_cond:
>     return func2(*args, **kwargs)
>   else:
>     return func3(some_other_args, **kwargs)
> 
> Thank you in advance, D.
> 
> 
You 'need something like this', so write something like that.
Did you intend to ask a question?



More information about the Python-list mailing list