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 39 times
1

Aenaon
- 3,169
- 4
- 32
- 60
-
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