Title: `sys.getwindowsversion` can fail without setting an exception on some WinAPI partitions · Issue #133580 · python/cpython · GitHub
Open Graph Title: `sys.getwindowsversion` can fail without setting an exception on some WinAPI partitions · Issue #133580 · python/cpython
X Title: `sys.getwindowsversion` can fail without setting an exception on some WinAPI partitions · Issue #133580 · python/cpython
Description: Bug report Bug description: _sys_getwindowsversion_from_kernel32 doesn't set an exception when it's called for WinAPI partitions that don't support the call. This leads to sys.getwindowsversion failing without setting an exception. CPyth...
Open Graph Description: Bug report Bug description: _sys_getwindowsversion_from_kernel32 doesn't set an exception when it's called for WinAPI partitions that don't support the call. This leads to sys.getwindowsversion fai...
X Description: Bug report Bug description: _sys_getwindowsversion_from_kernel32 doesn't set an exception when it's called for WinAPI partitions that don't support the call. This leads to sys.getwindow...
Opengraph URL: https://github.com/python/cpython/issues/133580
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`sys.getwindowsversion` can fail without setting an exception on some WinAPI partitions","articleBody":"# Bug report\n\n### Bug description:\n\n`_sys_getwindowsversion_from_kernel32` doesn't set an exception when it's called for WinAPI partitions that don't support the call. This leads to `sys.getwindowsversion` failing without setting an exception.\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133574\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/maxbachmann","@type":"Person","name":"maxbachmann"},"datePublished":"2025-05-07T13:02:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/133580/cpython/issues/133580"}
| 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:1031c246-c63b-3ac8-1df7-bd97a116125e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C35C:2B1AB1:15464AF:1BD8B71:696B2194 |
| html-safe-nonce | 1d5e4bd762634c0c6de2b69c573d3a54764accbec9e093c55762def22ae2b380 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzVDOjJCMUFCMToxNTQ2NEFGOjFCRDhCNzE6Njk2QjIxOTQiLCJ2aXNpdG9yX2lkIjoiMzgzNDA1ODg2ODMyMDU4NzcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9e1c9bac9148b339e306708b95007db4bbc61dd2f0bf94f96a59b01c11e23f51 |
| hovercard-subject-tag | issue:3045902747 |
| 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/133580/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89cf2bd4a0f7e2de8307108969d96972774fc7e6e6ce0398d93cfd02604f2e77/python/cpython/issues/133580 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89cf2bd4a0f7e2de8307108969d96972774fc7e6e6ce0398d93cfd02604f2e77/python/cpython/issues/133580 |
| og:image:alt | Bug report Bug description: _sys_getwindowsversion_from_kernel32 doesn't set an exception when it's called for WinAPI partitions that don't support the call. This leads to sys.getwindowsversion fai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxbachmann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width