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"
--------------------------
Trace collector output:
--------------------------
Traceback (most recent call last):
File "try.py", line 3, in <module>
if not sys.stdout.closed:
AttributeError: 'PyTraceObject' object has no attribute 'closed'
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32