79690162

Date: 2025-07-04 12:16:38
Score: 0.5
Natty:
Report link

After re-reading the doc, I tried with imap_unordered() and it worked. So only the code of do_stuff() needed to be altered and it now looks like this :

def do_stuff():
    pool_size = 8
    p = multiprocessing.Pool(pool_size)
    p.imap_unordered(self.foo, range(pool_size))
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jan Donal