[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE
Manjusaka
report at bugs.python.org
Mon Dec 17 07:54:07 EST 2018
Manjusaka <lizheao940510 at gmail.com> added the comment:
Vicor:
> Moreover, we directly support any EPOLL constant exposed in the select module. No need to change the API.
I don't think so
In class _PollLikeSelector ,here's register method
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
this code filter the event that people push in it. It only supports select.EPOLLIN and select.EPOLLOUT
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35517>
_______________________________________
More information about the Python-bugs-list
mailing list