You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
select.poll.poll should use ppoll when it's available #142434
ppoll is an extended version of poll that lets you set the timeout with nanosecond precision (it also supports setting a signal mask, but that's not important right now). It's available on Linux, FreeBSD, OpenBSD, NetBSD, and probably other Unix-likes.
It would be useful if the Python poll function would transparently use ppoll on systems where it is available to provide timeouts with nanosecond precision (as opposed to the default millisecond precision).
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Activity
serhiy-storchaka commentedon Dec 9, 2025
Looks reasonable. Do you want to provide a PR, @SpecLad?
vstinner commentedon Dec 9, 2025
I'm interested to work on this issue if @SpecLad doesn't want to write a pull request.
SpecLad commentedon Dec 9, 2025
I'd give it a try, but I don't know yet when I'll get around to it, so feel free to preempt me. 🙂
pythongh-142434: Use ppoll() if available in select.poll
vstinner commentedon Jan 7, 2026
I created #143529 to use ppoll() is available.
gh-142434: Use ppoll() if available in select.poll (#143529)
vstinner commentedon Jan 15, 2026
Feature implemented in #143529.
pythongh-142434: Use ppoll() if available in select.poll (python#143529)