Author martin.panter
Recipients martin.panter, maxnoe, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-07-11.09:45:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531302320.5.0.56676864532.issue34091@psf.upfronthosting.co.za>
In-reply-to
Content
The problem as I understand it is that Msys uses a pipe, but Python by default limits interactive REPL mode to terminals only. The same thing happens if you start Python on a pipe some other way, for instance “cat | python” vs “cat | python -i”.

I would prefer if Python decided to use interactive mode when no file name is given, rather than by checking if the file is a terminal. But that would break compatibility.

Another tip with Msys: enable unbuffered output with “python -u”. Otherwise output gets buffered, won’t be seen immediately, and may be lost if there is an unclean exit.
History
Date User Action Args
2018-07-11 09:45:20martin.pantersetrecipients: + martin.panter, paul.moore, tim.golden, zach.ware, steve.dower, maxnoe
2018-07-11 09:45:20martin.pantersetmessageid: <1531302320.5.0.56676864532.issue34091@psf.upfronthosting.co.za>
2018-07-11 09:45:20martin.panterlinkissue34091 messages
2018-07-11 09:45:20martin.pantercreate