| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
A documentation update is needed
Sorry, something went wrong.
There was a problem hiding this comment.
extra_events=0 maybe?
Sorry, something went wrong.
There was a problem hiding this comment.
I prefer None, but no False plz.
Sorry, something went wrong.
There was a problem hiding this comment.
None?
Sorry, something went wrong.
There was a problem hiding this comment.
extra_events is a bitmask, why None?
Sorry, something went wrong.
There was a problem hiding this comment.
extra_events is a bitmask, why None?
In the most circumstance, people do not need the extra_events , so I give it a default value
Sorry, something went wrong.
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
Sorry, something went wrong.
There was a problem hiding this comment.
that sounds a good idea. I will fix it! Thx!
Sorry, something went wrong.
|
Should modify() method be updated as well? |
Sorry, something went wrong.
|
After this change, we could pass more eventmask in, even wrong ones (not before since only read/write allowed). What to do with them? |
Sorry, something went wrong.
|
In select module, people use it by passing event mask directly. |
Sorry, something went wrong.
|
Regarding to check for invalid event mask: the underlying call to epoll (or another poller API) should raise an exception for invalid mask bits. |
Sorry, something went wrong.
@asvetlov It's the current status of register and modify, see their docs:
And IMHO, a ValueError is easier to identify the root cause of the error than an OSError of poll. And as my test and understanding the manual, both poll and epoll_wait won't return error for invalid bitmask, it seems just pick the bitmask it thinks valid. But it seems it's somewhat messy to implement the check. Relying on the users to always use constants in select module is also acceptable. |
Sorry, something went wrong.
|
@Zheaoli, would you mind to resolve the conflicts and pull in main? |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
bpo-35517: selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE
https://bugs.python.org/issue35517
https://bugs.python.org/issue35517