[issue18298] pythonw.exe fails with redirected stderr
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Jun 25 12:26:15 CEST 2013
Amaury Forgeot d'Arc added the comment:
Yes, in pythonw.exe the C stderr is not really usable, and this leads to unpredictable results.
It's difficult to fix in python2 though; python3 has fixed this issue, but in a way that cannot be backported.
Some workarounds:
- don't use pythonw.exe in a console, it's meant to be a *windows* application, without standard streams. I'm actually surprised of the behavior of your first example.
- use python3, where pythonw will set sys.stderr to None, and prints will be silently discarded.
----------
nosy: +amaury.forgeotdarc
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18298>
_______________________________________
More information about the Python-bugs-list
mailing list