Dealing with errors in interactive subprocess running python interpreter that freeze the process

cseberino at gmail.com cseberino at gmail.com
Thu Aug 2 15:54:39 EDT 2018


> As others have mentioned, separate threads for the individual pipes
> may help, or if you need to go that far there are specialised
> libraries, I believe (pexpect is one, but from what I know it's fairly
> Unix-specific, so I'm not very familiar with it).

I'm on Linux so pexpect is a possibility.

> Sorry, but there's no "simple" answer here for you (although you may
> well be able to get something that works well enough for your specific
> needs - but it's not obvious from your snippet of code what you're
> trying to achieve).

To send and receive text from a subprocess..even when there are exceptions.



More information about the Python-list mailing list