Re: [python-win32] sys.stdout.closed missing with win32trace

2007-11-04 Thread TK Soh
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

Re: [python-win32] sys.stdout.closed missing with win32trace

2007-11-04 Thread Michael Foord
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

[python-win32] sys.stdout.closed missing with win32trace

2007-11-03 Thread TK Soh
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