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?
Asked
Active
Viewed 34 times
1
Aenaon
- 2,739
- 3
- 24
- 50
-
2It 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