Returning multiple lists from pool.map processes?

前端 未结 1 932
我寻月下人不归
我寻月下人不归 2021-01-12 04:43

Win 7, x64, Python 2.7.12

In the following code I am setting off some pool processes to do a trivial multiplication via the multiprocessing.Pool.map() m

相关标签:
1条回答
  • 2021-01-12 04:59

    This question has nothing to do with multiprocessing or threadpooling. It is simply about how to unzip lists, which can be done with the standard zip(*...) idiom.

    myList_1, myList_2 = zip(*pool.map(createLists, splitBranches))
    
    0 讨论(0)
提交回复
热议问题