[issue34091] REPL does not work in msys2, ConEmu terminals on windows

Martin Panter report at bugs.python.org
Wed Jul 11 05:45:20 EDT 2018


Martin Panter <vadmium+py at gmail.com> added the comment:

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.

----------
components: +Windows
nosy: +martin.panter, paul.moore, steve.dower, tim.golden, zach.ware

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34091>
_______________________________________


More information about the Python-bugs-list mailing list