howto resend args and kwargs to other func?

dmitrey openopt at ukr.net
Sun Jul 1 10:53:17 CEST 2007


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.




More information about the Python-list mailing list