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

Closed
wants to merge 7 commits into 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
@CristiFati CristiFati closed this May 28, 2024
@CristiFati
Copy link
Contributor Author

CristiFati commented May 28, 2024

Closing, as all the changes were contained (and merged) by #2219.

@CristiFati CristiFati deleted the cfati_dev07 branch June 19, 2024 18:39
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.

2 participants