Running python from pty without prompt

Michael Torrie torriem at
Thu Dec 15 00:08:59 EST 2016

On 12/14/2016 09:29 PM, Samuel Williams wrote:
> Here are some examples of different languages:

Okay so it looks like you're just opening a pipe to a subprocess and
feeding it a script and input.  So there's no pty involved here.  Or am
I wrong?

In any case, I think if you made a python wrapper script that could take
the standard in up until the ctrl-d, and then exec() that, what's left
on standard in should be able to feed the exec'd script any input it needs.

More information about the Python-list mailing list