John Jones added the comment:

To prevent subprocess/os.fork() doubling my memory after loading a large numpy 
array into memory, I now have to start my script with 650 calls to 
subprocess.Popen(), which just sit their waiting for some stdin to start doing 
something. This doesn't happen until after the numpy array is loaded, else I 
quickly run out of memory.

I think this sort of situation results in more unnecessary complexity compared 
to using posix_spawn, in spite of the concerns about using posix_spawn. Perhaps 
subprocess.Popen just needs a "posix_spawn=True" parameter?

----------
nosy: +John Jones

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20104>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to