Multi-threaded printing and IOErrors in Windows (py2exe)
Roger Binns
rogerb at rogerbinns.com
Sat May 8 00:36:45 EDT 2004
Thomas Heller wrote:
> "Roger Binns" <rogerb at rogerbinns.com> writes:
> > The bizarre thing is that the IOError is very infrequent,
> > but very annoying when it happens.
>
> If you have a small program which allows to reproduce this, I'll look
> into it.
I cannot get it to repeat with test programs I have written (and boy have
I tried). Not very many users reported the problem. It is probably
some sort of race condition somewhere, and possibly only occurs
on slower machines. My real program has many wxPython OnIdle handlers
which is predominantly where the error shows up combined with a background
thread doing heavy serial port activity to a cell phone, also doing
prints.
Is it possible for py2exe to replace stdout with something that
just ignores all writes, as opposed to None (or is that what
is already happening).
Roger
More information about the Python-list
mailing list