Running python from pty without prompt

Michael Torrie torriem at gmail.com
Fri Dec 9 19:47:32 EST 2016


On 12/09/2016 04:11 PM, space.ship.traveller at gmail.com wrote:
> When you invoke `ruby` from a pty, you get no output (as opposed to
> `irb`, interactive ruby [shell]). You can write a script to stdin,
> and send Ctrl-D (EOT / 0x04). Then, ruby will execute the script.
> stdin is not closed so programs that expect interactive input will
> work correctly.
> 
> When we run python in the same way, we get an output prompt. As soon
> as a function like `input` is called, the program is interrupted.

Nevermind my other post. I understand what you are saying.



More information about the Python-list mailing list