On 11/4/07, Michael Foord <[EMAIL PROTECTED]> wrote:
> TK Soh wrote:
> > It looks like the "closed" attribute for sys.stderr and sys.stdout are
> > missing when win32trace is in effect. Any way to work around this?
> >
>
> I have no idea about win32traceutil, but the sys module provides
> sys.__std
TK Soh wrote:
> It looks like the "closed" attribute for sys.stderr and sys.stdout are
> missing when win32trace is in effect. Any way to work around this?
>
I have no idea about win32traceutil, but the sys module provides
sys.__stdout__ and sys.__stderr__ so that even when modules replace the
It looks like the "closed" attribute for sys.stderr and sys.stdout are
missing when win32trace is in effect. Any way to work around this?
python script:
--
import win32traceutil
import sys
if not sys.stdout.closed:
print "stdout is opened"
--
Tr