Title: `select.poll.poll` should use `ppoll` when it's available · Issue #142434 · python/cpython · GitHub
Open Graph Title: `select.poll.poll` should use `ppoll` when it's available · Issue #142434 · python/cpython
X Title: `select.poll.poll` should use `ppoll` when it's available · Issue #142434 · python/cpython
Description: Feature or enhancement Proposal: 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,...
Open Graph Description: Feature or enhancement Proposal: 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...
X Description: Feature or enhancement Proposal: 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 r...
Opengraph URL: https://github.com/python/cpython/issues/142434
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`select.poll.poll` should use `ppoll` when it's available","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n`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](https://man7.org/linux/man-pages/man2/poll.2.html), [FreeBSD](https://man.freebsd.org/cgi/man.cgi?query=ppoll\u0026sektion=2\u0026manpath=FreeBSD+15.0-RELEASE+and+Ports), [OpenBSD](https://man.openbsd.org/poll.2), [NetBSD](https://man.netbsd.org/NetBSD-10.0/ppoll.2), and probably other Unix-likes.\n\nIt 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).\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-143529\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/SpecLad","@type":"Person","name":"SpecLad"},"datePublished":"2025-12-08T22:32:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/142434/cpython/issues/142434"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bd4feac6-d8ed-d540-3566-bb325555b106 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB12:1314A9:A20AEF:DF1F47:6969EE48 |
| html-safe-nonce | 97f2ad61808c20b62abe235ce7b266e22a8d241f336b756a2784f4f19d7abc84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjEyOjEzMTRBOTpBMjBBRUY6REYxRjQ3OjY5NjlFRTQ4IiwidmlzaXRvcl9pZCI6IjQ5MzgwNDk3MDE1NzE4NDk4MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c5c65e214dccfe6ecc72d8c32381660691738f6069882fee7d38be0721d0598 |
| hovercard-subject-tag | issue:3708266791 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/142434/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8c44c4889bee2403ca3dc226455794e63139b0aafe077527b9eac156cf082b9/python/cpython/issues/142434 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8c44c4889bee2403ca3dc226455794e63139b0aafe077527b9eac156cf082b9/python/cpython/issues/142434 |
| og:image:alt | Feature or enhancement Proposal: 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SpecLad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width