Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
dgilman wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromdgilman:epollexclusive

Conversation

@dgilman
Copy link

@dgilmandgilman commentedAug 19, 2021
edited by encukou
Loading

@the-knights-who-say-ni

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 Missing

Our records indicate the following people have not signed the CLA:

@dgilman

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
before our records are updated.

You cancheck yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@dgilmandgilman changed the titleissue44951: Allow setting EPOLLEXCLUSIVE on selectors.EpollSelectorbpo-44951: Allow setting EPOLLEXCLUSIVE on selectors.EpollSelectorAug 19, 2021
Copy link
Contributor

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.

Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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/

@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA signed

@pythonpython deleted a commentApr 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ambvambvambv left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@dgilman@the-knights-who-say-ni@ambv@ezio-melotti@bedevere-bot

[8]ページ先頭

©2009-2026 Movatter.jp