Skip to content
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

Cleanly break out of windows iteration #2189

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

CristiFati
Copy link
Contributor

Split this out of #2183 (with additional improvements).

Notes:

  • To be merged after Extend PyWin_SetAPIError #2188 (although after that one is merged this will become invalid as it's on top of it (for testing purposes))!

  • Applied the same mechanism to all window enumeration functions. For EnumChildWindows, due to its special return value case, an exception will only be raised when callback raises one (when returning False and setting last error, no exception will be raised as in EnumWindows' case). Note that now it will raise the correct exception as until now in some cases it was (wrongly) raising: SystemError: <built-in function EnumChildWindows> returned a result with an exception set

win32/test/test_win32gui.py Outdated Show resolved Hide resolved
win32/test/test_win32gui.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants