STINNER Victor <[email protected]> added the comment:
I prefer Giampaolo since discussed flags are very specific to epoll(): select()
doesn't support them for example, nor kqueue nor devpoll (not *yet*).
If we add a keyword-parameter, to me, it sounds like it's something "portable"
working on multiple platforms and then you need hasattr():
if exclusive and hasattr(select, "EPOLLEXCLUSIVE"):
epoll_events |= select.EPOLLEXCLUSIVE
If the caller pass select.EPOLLEXCLUSIVE, hasattr() is useless.
Moreover, we directly support any EPOLL constant exposed in the select module.
No need to change the API.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35517>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com