Re: howto resend args and kwargs to other func?



dmitrey <openopt@xxxxxxx> 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?
.