On Apr 20, 2022 13:01, Sam Ezeh <sam.z.e...@gmail.com> 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?

   =====
   Could it simply be:
   multiprocessing.Pool.pmap(lambda job: result.process(*job), jobs)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to