[Python-ideas] Add a generic async IO poller/reactor to select module

Ronald Oussoren ronaldoussoren at mac.com
Thu May 24 08:47:35 CEST 2012


On 24 May, 2012, at 3:32, Giampaolo Rodolà wrote:
>>>> 
> 
> The handler is supposed to provide 3 methods:
> - handle_read_event
> - handle_write_event
> - handle_error_event
> 
> Users willing to support multiple event loops such as wx, gtk etc can do:
> 
>>>> while 1:
> ...       poller.poll(timeout=0.1, blocking=False)
> ...       otherpoller.poll()
> 
> 
> Basically, this would be the whole API.

Isn't this a limited version of asyncore? (poller.poll == asyncore.loop, the handler is a subset of asyncore.dispatcher).

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4788 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120524/dd6dace9/attachment.bin>


More information about the Python-ideas mailing list