Message321422
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. |
|
Date |
User |
Action |
Args |
2018-07-11 09:45:20 | martin.panter | set | recipients:
+ martin.panter, paul.moore, tim.golden, zach.ware, steve.dower, maxnoe |
2018-07-11 09:45:20 | martin.panter | set | messageid: <1531302320.5.0.56676864532.issue34091@psf.upfronthosting.co.za> |
2018-07-11 09:45:20 | martin.panter | link | issue34091 messages |
2018-07-11 09:45:20 | martin.panter | create | |
|