Is there any way to map list items to a function along with arguments. I have a list:
pages = [p1, p2, p3, p4, p5...]
And I have to call fu
You could use a list comprehension
[myFunc(p, additionalArgument) for p in pages]
or functools.partial()
functools.partial()
map(functools.partial(myFunc, some_arg=additionalArgument), pages)