On Wed, Oct 3, 2018 at 6:30 PM, Sean Harrington <seanhar...@gmail.com> wrote: > with Pool(func_kwargs={"big_cache": big_cache}) as pool: > pool.map(func, ls)
I feel like it would be nicer to spell this: with Pool() as pool: pool.map(functools.partial(func, big_cache=big_cache), ls) And this might also solve your problem, if pool.map is clever enough to only send the function object once to each worker? -n -- Nathaniel J. Smith -- https://vorpus.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com