PythonWin Question
Mark Hammond
MarkH at ActiveState.com
Thu Dec 28 07:34:51 EST 2000
John Q. Public wrote:
> While trying to add a journaling mechanism to python, I came across an
> odd behavior from PythonWin when I tried to override sys.stdout. For
> both the console and IDLE versions of the interpreter, I can override
> sys.stdout, but not for PythonWin.
>
This is a "feature". Quite often I found people running scripts that
themself set sys.stdout. This would then mess-up Pythonwin after the
script had completed - so Pythonwin resets stdout after running a script.
Mark.
More information about the Python-list
mailing list