Message331996
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. |
|
Date |
User |
Action |
Args |
2018-12-17 11:47:11 | vstinner | set | recipients:
+ vstinner, giampaolo.rodola, neologix, yselivanov, Manjusaka |
2018-12-17 11:47:11 | vstinner | set | messageid: <1545047231.19.0.788709270274.issue35517@psf.upfronthosting.co.za> |
2018-12-17 11:47:11 | vstinner | link | issue35517 messages |
2018-12-17 11:47:11 | vstinner | create | |
|