Title: Add `platform.invalidate_caches` for invalidating cached results · Issue #122549 · python/cpython · GitHub
Open Graph Title: Add `platform.invalidate_caches` for invalidating cached results · Issue #122549 · python/cpython
X Title: Add `platform.invalidate_caches` for invalidating cached results · Issue #122549 · python/cpython
Description: Feature or enhancement Proposal: In #122525, it was observed that many functions of the platform module use cached results. This is, in practice, preferrable, but it should also be possible, if needed, to invalidate cached results. One u...
Open Graph Description: Feature or enhancement Proposal: In #122525, it was observed that many functions of the platform module use cached results. This is, in practice, preferrable, but it should also be possible, if nee...
X Description: Feature or enhancement Proposal: In #122525, it was observed that many functions of the platform module use cached results. This is, in practice, preferrable, but it should also be possible, if nee...
Opengraph URL: https://github.com/python/cpython/issues/122549
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `platform.invalidate_caches` for invalidating cached results","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nIn #122525, it was observed that many functions of the `platform` module use cached results. This is, in practice, preferrable, but it should also be possible, if needed, to invalidate cached results. One use case is when the host name changes (i.e., one of the `uname()` components change).\n\n### Has this already been discussed elsewhere?\n\nNo response given\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-122547\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/picnixz","@type":"Person","name":"picnixz"},"datePublished":"2024-08-01T09:14:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/122549/cpython/issues/122549"}
| 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:f3613d4c-5e27-abc9-bf31-d4f6f36ab886 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA36:25211B:5E81A2:7DD4E9:6A52FD16 |
| html-safe-nonce | f58ecc8e3e61e00bf5384b74d1a291a5ee803bdb995fa36b12a3d871898c91ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTM2OjI1MjExQjo1RTgxQTI6N0RENEU5OjZBNTJGRDE2IiwidmlzaXRvcl9pZCI6IjE1NzkzMDM5Mjk0MzQ1MzcyMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7438de1417268895baba828ad6fcdce82af34ba434a650bf1f45d3a1d1f77c7b |
| hovercard-subject-tag | issue:2441928607 |
| 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/122549/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf6098c9fe6716a734199b152e876dfd3ab2d05d14d0f7f31976383d44163305/python/cpython/issues/122549 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf6098c9fe6716a734199b152e876dfd3ab2d05d14d0f7f31976383d44163305/python/cpython/issues/122549 |
| og:image:alt | Feature or enhancement Proposal: In #122525, it was observed that many functions of the platform module use cached results. This is, in practice, preferrable, but it should also be possible, if nee... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | picnixz |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width