Re: [Python-Dev] epoll() and kqueue wrapper for the select module

2007-12-21 Thread Ross Cohen
On Fri, Dec 21, 2007 at 11:28:55AM +0100, Christian Heimes wrote: > Your wrapper is a good implementation. I even found an inconvenience in > my implementation when I studied your code. My wrapper raised an > exception when a closed fd was removed with EPOLL_CTL_DEL. It should be a good reference,

Re: [Python-Dev] epoll() and kqueue wrapper for the select module

2007-12-21 Thread Giampaolo Rodola'
This makes me very happy. I could try to work on integrating this stuff in asyncore, if someone finds this of some interest. On 20 Dic, 18:08, Christian Heimes <[EMAIL PROTECTED]> wrote: > Linux Kernel 2.6+ and BSD (including Mac OS X) have two I/O event > notification systems similar but superior

Re: [Python-Dev] epoll() and kqueue wrapper for the select module

2007-12-21 Thread Christian Heimes
Ross Cohen wrote: > Did you look at the python-epoll module which has been in the Cheese > Shop for quite some time? There is no messing with a low level control > file descriptor and it presents an identical interface to select.poll(). No, I didn't see the module. To be honest I didn't look at th

Re: [Python-Dev] epoll() and kqueue wrapper for the select module

2007-12-20 Thread Gregory P. Smith
On 12/20/07, Ross Cohen <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 20, 2007 at 06:08:47PM +0100, Christian Heimes wrote: > > > I've written wrappers for both mechanisms. Both wrappers are inspired > > from Twisted and select.poll()'s API. The interface is more Pythonic > > than the available wrappe

Re: [Python-Dev] epoll() and kqueue wrapper for the select module

2007-12-20 Thread Ross Cohen
On Thu, Dec 20, 2007 at 06:08:47PM +0100, Christian Heimes wrote: > I've written wrappers for both mechanisms. Both wrappers are inspired > from Twisted and select.poll()'s API. The interface is more Pythonic > than the available wrappers and it reduced the burden on the user. The > users don't ha