[issue43191] Shared Memory for array of object

2021-02-10 Thread Hannah Busshoff


New submission from Hannah Busshoff :

Dear all, 

When seeking to put an object of type -- Array of object -- into shared memory 
when doing multiprocessing via starmap, I am encountering problems -- in that 
sense that the program does not finish running but apparently gets stuck. 

I attached a minimal example. 

Many thanks for your help. I sincerely hope I have not overlooked that this 
issue has been raised by somebody else. I am happy to provide further input!

Cheers, 

Hannah

--
files: example.py
messages: 386769
nosy: hannahbusshoff
priority: normal
severity: normal
status: open
title: Shared Memory for array of object
type: crash
versions: Python 3.8
Added file: https://bugs.python.org/file49801/example.py

___
Python tracker 
<https://bugs.python.org/issue43191>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43191] Shared Memory for array of object

2021-02-10 Thread Hannah Busshoff


Hannah Busshoff  added the comment:

Hi Eric,

Thanks for your quick reply. The numpy operation was only an attempt to 
serialize the nested list and make it available as a shared memory object.  As 
is written in the documentation, the SharedList() does not take nested lists as 
an input. 

I posed the question as well on Stackoverflow with a slightly longer example. 
Feel free to check it out: 
https://stackoverflow.com/questions/66138235/multiprocessing-with-array-of-objects-in-shared-memory.
 

Thanks again. 

Cheers, 

Hannah

--

___
Python tracker 
<https://bugs.python.org/issue43191>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com