I have been trying the following:
from multiprocessing import Pool def f(some_list): some_list.append(4) print \'Child process: new list = \' + str(
The multiprocessing library serializes objects using pickle to pass them between processes.
This ensures safe inter-process communication, and two processes can use the "same" objects without using shared memory.