On 8/2/2018 3:52 PM, cseber...@gmail.com wrote:

subprocess is not meant for interaction through the pipes.  That is why,
I have been told, IDLE uses a socket for interaction.  Multiprocess is
apparently better suited for interaction without resorting to a socket.

So use normal socket on localhost for this?  Don't you still need subprocess
to launch the interpreter in a separate process?

Yes. And you need to replace sys.stdxxx with file-like objects that redirect streams from and to the socket. And it is not 100% reliable, just 99.99??% reliableC

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to