Multiprocessing with dictionary of generator objects, TypeError: cannot pickle 'generator' object
问题 How can I use multiprocessing to create a dictionary with generator objects as values? Here is my problem in greater detail, using basic examples: I have a large dictionary of lists whereby I am applying functions to compute on the dictionary values using ProcessPoolExecutor in concurrent.futures . (Note I am using ProcessPoolExecutor , not threads---there is no GIL contention here.) Here is an example dictionary of lists: example_dict1 = {'key1':[367, 30, 847, 482, 887, 654, 347, 504, 413,