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 giampaolo.rodola
Recipients Ikinoki, giampaolo.rodola, josiahcarlson
Date 2009-12-10.08:23:50
SpamBayes Score 4.316386e-06
Marked as misclassified No
Message-id <1260433433.63.0.581204840811.issue6692@psf.upfronthosting.co.za>
In-reply-to
Content
I have a patch for adding epoll() support which is almost ready
(asyncore supports poll(), not epoll()), it's just a matter of writing
tests. 

kqueue() shouldn't be too difficult to implement considering that we can
take Twisted as example.

...But aside from the implementation details I'd say there's a crucial
problem with the current API:

asyncore.loop([timeout[, use_poll[, map[, count]]]])

The "use_poll" argument should be deprecated in favor of something else,
maybe a "poller" which accepts a callable, like this:


>>> asyncore.loop(poller=asyncore.select_poller)
>>> asyncore.loop(poller=asyncore.epoll_poller)
>>> asyncore.loop(poller=asyncore.kqueue_poller)
History
Date User Action Args
2009-12-10 08:23:53giampaolo.rodolasetrecipients: + giampaolo.rodola, josiahcarlson, Ikinoki
2009-12-10 08:23:53giampaolo.rodolasetmessageid: <1260433433.63.0.581204840811.issue6692@psf.upfronthosting.co.za>
2009-12-10 08:23:52giampaolo.rodolalinkissue6692 messages
2009-12-10 08:23:50giampaolo.rodolacreate