KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to make a shared object of a multidimensional array or list of lists for it to be available to the other processes. Is there a way to create it as for what i have seen it is not possible. I have tried: from multiprocessing import Process, Value, Array arr = Array('i', range(10)) arr[:] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] arr[2]=[12,43] TypeError: an integer is required I heard numpy array can be multiarray and a shared object, if above is not possible can someone tell me how to make a numpy array a shared object??
Tags (comma-separated)
Save Edits
Cancel