Tuple unpacking inside lambda expressions
Peter Otten
__peter__ at web.de
Thu Apr 21 09:53:01 EDT 2022
On 20/04/2022 13:01, Sam Ezeh wrote:
> I went back to the code recently and I remembered what the problem was.
>
> I was using multiprocessing.Pool.pmap which takes a callable (the
> lambda here) so I wasn't able to use comprehensions or starmap
>
> Is there anything for situations like these?
Hm, I don't see pmap, but there is a starmap():
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.starmap
More information about the Python-list
mailing list