This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author balthus
Recipients
Date 2002-11-25.14:28:15
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 14:09:10adminlinkissue643571 messages
2007-08-23 14:09:10admincreate