import shared_memory >>> a = shared_memory.ShareableList(range(5)) >>> print(a.shm.name) psm_8c3af53a >>> print(a) ShareableList([0, 1, 2, 3, 4], name='psm_8c3af53a') >>> # process 2 >>> from multiprocessing import shared_memory >>> b = shared_memory.ShareableList(name='psm_8c3af53a') >>> print(b) ShareableList([0, 1, 2, 3, 4], name='psm_8c3af53a') >>> b[-1] = 10 >>> print(b) ShareableList([0, 1, 2, 3, 10], name='psm_8c3af53a') >>> # process 1 >>> print(a) ShareableList([0, 1, 2, 3, 10], name='psm_8c3af53a') 56 / 68