1

I am confused with this...Since python cannot pickle functions, hence preventing us from passing a wrapper function to Pool().map() then how come this works?

https://stackoverflow.com/a/64844943/5431734

Aenaon
  • 3,169
  • 4
  • 32
  • 60
  • 2
    It is using multithreading (`from multiprocessing.dummy import Pool as ThreadPool`), not multiprocessing (`from multiprocessing.pool import Pool`). The code could have also more simply done `from multiprocessing.pool import ThreadPool`. – Booboo Jun 15 '21 at 09:55

0 Answers0