PyQt and async I/O

Andrew Bennetts andrew-pythonlist at
Wed Jul 2 03:23:25 CEST 2003

On Tue, Jul 01, 2003 at 02:01:43PM -0700, djw wrote:
> If you were to use asyncore for this async I/O, there is no yielding that I
> can see. Select() doesn't yield, and there is no time.sleep() in the
> asyncore.loop() code. Even if I were to add a time.sleep() to the loop,
> wouldn't the fact that select() blocks for some timeout value (default=30.0
> sec) imply that it would only yield after the select() timed out each time
> through the loop? That would seem to make for a pretty unresponsive UI. 
> Hopefully somebody can clue me into understanding this.

Twisted has support for Qt -- see the 'twisted.internet.qtreactor' module.
That might give you some ideas; alternatively, you could just use Twisted
and stop worrying ;)


More information about the Python-list mailing list