The Python Oracle

Can't pickle <type 'instancemethod'> when using multiprocessing Pool.map()

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC P Beethoven - Piano Sonata No 2 in A

--

Chapters
00:00 Question
01:05 Accepted answer (Score 130)
01:47 Answer 2 (Score 79)
03:26 Answer 3 (Score 36)
03:48 Answer 4 (Score 23)
06:40 Thank you

--

Full question
https://stackoverflow.com/questions/1816...

Accepted answer links:
[copy_reg]: https://docs.python.org/3/library/copyre...
[this thread]: http://bytes.com/topic/python/answers/55...

Answer 2 links:
[What can multiprocessing and dill do together?]: https://stackoverflow.com/questions/1998...
http://matthewrocklin.com/blog/work/2013.../
https://github.com/uqfoundation/pathos

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #multithreading #multiprocessing #pickle #pool

#avk47