> print(*more_numbers, sep=', ')
This alone makes me appreciate print as a function in py3.
This alone makes me appreciate print as a function in py3.
def apply(f, a):
return f(*a) f1 = partial(f, 1, 2)
f2 = partial(f1, 3, 4)
f2(5, 6) # equivalent to f(1, 2, 3, 4, 5, 6)
It also supports kwargs. apply(l, print)
is the same as for el in l:
print(el)
which is a number of print statements, rather than 1 print statement with a number of arguments.