[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] bpo-34837: Multiprocessing.Pool API Extension - Pass Data to Workers w/o Globals

On Wed, Oct 3, 2018 at 6:30 PM, Sean Harrington <seanharr11 at> wrote:
> with Pool(func_kwargs={"big_cache": big_cache}) as pool:
>, ls)

I feel like it would be nicer to spell this:

with Pool() as pool:, big_cache=big_cache), ls)

And this might also solve your problem, if is clever enough
to only send the function object once to each worker?


Nathaniel J. Smith --