Solved Pyside2 is missing binding of QSharedMemory. I want to know if there is a good alternative to QSharedMemory? Python3.7.5
-
Pyside2 is missing binding of QSharedMemory. I want to know if there is a good alternative to QSharedMemory? Python3.7.5
I want to share bytearray between two processes.https://github.com/baoboa/pyqt5/blob/master/examples/ipc/sharedmemory/sharedmemory.py
-
@ideaplus
I haven't compared what's on offer inQSharedMemory
vs in Python libraries, but presumably the easiest way to go is via a Python module. You don't need to useQSharedMemory
just because you're using Qt.The apparent shame is that what you seem to want is https://docs.python.org/3/library/multiprocessing.shared_memory.html, but that says
New in version 3.8.
:( And it seems to be the main new feature of 3.8.
Can you move to 3.8? In any case have a read around 3.7's https://docs.python.org/3.7/library/multiprocessing.html.