[Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING
Armin Rigo
arigo at tunes.org
Wed May 21 10:45:48 CEST 2008
Hi Martin,
On Tue, May 20, 2008 at 10:22:37AM +0200, "Martin v. Löwis" wrote:
> In particular, setting this environment variable would also disable
> the detection of whether stdout is a terminal.
In this case, it seems to me that existing programs that start python as
a non-interactive subprocess, via a mecanism like os.popen2() or the
equivalent in other languages, will receive bogus data (the python
banner) and/or hang in unexpected ways (the subprocess waiting for more
input after the prompt).
A bientot,
Armin
More information about the Python-Dev
mailing list