-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-38323: Add guard clauses in MultiLoopChildWatcher. #22756
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
bpo-38323: Add guard clauses in MultiLoopChildWatcher. #22756
Conversation
This is a trivial refactor in preparation for a fix for bpo-38323.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Sorry for the delay, I got caught up with organizing the sprint (and participating the week of Oct. 19-23), then took a bit of a break after it was over.
With usage of guard clauses instead of an additional layer of nested indents though, I found it significantly easier to mentally parse (which makes a difference especially for someone less experienced w/ non-trivial signal handling, like myself). Also, thanks for splitting this refactor away from #20142, that definitely makes the review process easier.
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Thanks @cjerdonek for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
@asvetlov: Please replace |
Thanks! Sorry for delay |
GH-23806 is a backport of this pull request to the 3.9 branch. |
This is a trivial refactor in preparation for a fix for bpo-38323. (cherry picked from commit 66d3b58) Co-authored-by: Chris Jerdonek <[email protected]>
This is a trivial refactor in preparation for a fix for bpo-38323. (cherry picked from commit 66d3b58) Co-authored-by: Chris Jerdonek <[email protected]>
GH-23807 is a backport of this pull request to the 3.8 branch. |
This is a trivial refactor in preparation for a fix for bpo-38323. (cherry picked from commit 66d3b58) Co-authored-by: Chris Jerdonek <[email protected]>
This is a trivial refactor in preparation for a fix for bpo-38323. (cherry picked from commit 66d3b58) Co-authored-by: Chris Jerdonek <[email protected]>
This is a trivial refactor in preparation for a fix for bpo-38323.
This is a trivial refactor in preparation for a fix for bpo-38323 (see #20142).
https://bugs.python.org/issue38323