[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE
Manjusaka
report at bugs.python.org
Mon Dec 17 06:42:06 EST 2018
Manjusaka <lizheao940510 at gmail.com> added the comment:
In my opinion
selectors is an abstract for select, so I don't think allow people use select.* in selector is a good idea.
like this
> s.register(fd, EVENT_READ, extra_events=select.EPOLLEXCLUSIVE | select.EPOLLONESHOT)
Because the multiple epoll's params are supported in different Python version and Linux Kernel version.
So, I think it's a good idea to support different epoll's params by keyword-only param in register method.
It's also convenient to check the params
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35517>
_______________________________________
More information about the Python-bugs-list
mailing list