Uh oh!
There was an error while loading. Please reload this page.
gh-79698: selector.EpollSelector: add new parameter to support extra events - #11193
gh-79698: selector.EpollSelector: add new parameter to support extra events#11193Zheaoli wants to merge 1 commit into
Conversation
asvetlov
left a comment
There was a problem hiding this comment.
A documentation update is needed
There was a problem hiding this comment.
I prefer None, but no False plz.
There was a problem hiding this comment.
extra_events is a bitmask, why None?
There was a problem hiding this comment.
extra_eventsis a bitmask, whyNone?
In the most circumstance, people do not need the extra_events , so I give it a default value
There was a problem hiding this comment.
With 0 default value people still don't need to pass extra_events.
But we don't need to extra check the value for None, 0 should work fine as no flags for all possible selectors: poll, epoll, kqueue etc
There was a problem hiding this comment.
that sounds a good idea. I will fix it! Thx!
asvetlov
commented
Dec 17, 2018
Should |
After this change, we could pass more eventmask in, even wrong ones (not before since only read/write allowed). What to do with them? |
Zheaoli
commented
Dec 17, 2018
In select module, people use it by passing event mask directly. |
a897190 to
234f30eCompareasvetlov
commented
Dec 17, 2018
Regarding to check for invalid event mask: the underlying call to |
giampaolo
commented
Dec 17, 2018
I commented on the bug tracker. |
@asvetlov It's the current status of
And IMHO, a But it seems it's somewhat messy to implement the check. Relying on the users to always use constants in |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Nov 8, 2024
@Zheaoli, would you mind to resolve the conflicts and pull in |
This PR is stale because it has been open for 30 days with no activity. |
bpo-35517: selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE
https://bugs.python.org/issue35517
https://bugs.python.org/issue35517