def partial(f, *args):
@functools.wraps(f)<EOL>def partial_f(*inner_args):<EOL><INDENT>return f(*itertools.chain(args, inner_args))<EOL><DEDENT>return partial_f<EOL>
Return a function which is the partial application of f with args.