Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
bpo-44951: Allow setting EPOLLEXCLUSIVE on selectors.EpollSelector#27819
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?
Conversation
the-knights-who-say-ni commentedAug 19, 2021
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed thePSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please followthe steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You cancheck yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
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.
Since this is in a method literally calledregister, I'd name the new argument simplyflags.
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.
So farselectors haven't had this but looking atasyncio,ssl,socket,threading, andmultiprocessing code, we usually either use properties forboth getting and setting a value, or we useboth aget_* and aset_* method.
Since we already haveget_key andget_map inselectors.py, and there are no public fields nor properties here, I'd change theexclusive getter to an explicitget_exclusive() method.
dgilman commentedSep 11, 2021
Thanks for the feedback - I think it is best to get a decision made on whether this approach is the way to go (modify the Epoll class) or if it should be an entirely new EpollExclusiveSelector class with no API changes. |
dgilman commentedJul 26, 2022
The latest mailing list post on this issue, summarizing the two approaches and the decision that should be made, is herehttps://mail.python.org/archives/list/python-dev@python.org/thread/VB2BBUUJENMWPGXGFMON7UQW27ZOBIB7/ |
The following commit authors need to sign the Contributor License Agreement: |
Uh oh!
There was an error while loading.Please reload this page.
See:
https://bugs.python.org/issue44951 (GH-89114)
https://bugs.python.org/issue35517 (GH-79698)
#11193
https://bugs.python.org/issue44951