Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-79698: selector.EpollSelector: add new parameter to support extra events#11193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
asvetlov left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
A documentation update is needed
Lib/selectors.py Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
extra_events=0 maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I preferNone, but noFalse plz.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
extra_events is a bitmask, whyNone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
With0 default value people still don't need to passextra_events.
But we don't need to extra check the value forNone,0 should work fine asno flags for all possible selectors:poll,epoll,kqueue etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
that sounds a good idea. I will fix it! Thx!
asvetlov commentedDec 17, 2018
Should |
zhangyangyu commentedDec 17, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 commentedDec 17, 2018
In select module, people use it by passing event mask directly. |
a897190 to234f30eCompareasvetlov commentedDec 17, 2018
Regarding to check for invalid event mask: the underlying call to |
giampaolo commentedDec 17, 2018
Icommented on the bug tracker. |
zhangyangyu commentedDec 18, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@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 commentedNov 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. |
Uh oh!
There was an error while loading.Please reload this page.
bpo-35517: selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE
https://bugs.python.org/issue35517
https://bugs.python.org/issue35517