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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to