Message13458
I need to treat file objects and sys.stdout object as one.
So I can write a class that writes likewise in a file
or to standard output.
The problem came when I called the close() method of an
sys.stdout object.
I've seen that in Pythonwin, sys.stdout has such a method.
This is not the case in the standard python.
And calling it causes that :
File
"C:\Python22\lib\site-packages\Pythonwin\pywin\scintilla\document.py",
line 153, in __call__
return apply(getattr(v, self.name), (std, extra))
AttributeError: OnBraceMatch
win32ui: Exception in OnNotify() handler
I know that the right way to go is to avoid using the
close() method.
But methinks it's a bug that the method is available in
the IDE of pythonwin. |
|
Date |
User |
Action |
Args |
2007-08-23 14:09:10 | admin | link | issue643571 messages |
2007-08-23 14:09:10 | admin | create | |
|