How can I share a list between two python scripts using mmap
but without using files?
My first python script calls the other using subprocess.Popen(["python","child.py"])
I have to call 10 different subprocess and don't want to use a file as it will increase I/O time which is not desirable.
Each of my subprocess will modify this list variable created in the parent process.
Note: I don't want to use multiprocess
or threads
and require the solution using subprocess.Popen
only.