Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sys.getwindowsversion can fail without setting an exception on some WinAPI partitions #133580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maxbachmann opened this issue May 7, 2025 · 1 comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) OS-windows type-bug An unexpected behavior, bug, or error

Comments

@maxbachmann
Copy link
Contributor

maxbachmann commented May 7, 2025

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.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

@maxbachmann maxbachmann added the type-bug An unexpected behavior, bug, or error label May 7, 2025
@picnixz picnixz added OS-windows interpreter-core (Objects, Python, Grammar, and Parser dirs) labels May 7, 2025
@zooba
Copy link
Member

zooba commented May 14, 2025

Thanks!

@zooba zooba closed this as completed May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants