-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-97654: Add auto exception chaining example to tutorial #97703
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
Conversation
Thanks @smheidrich for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Thanks @smheidrich for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Thanks @smheidrich for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
GH-97884 is a backport of this pull request to the 3.10 branch. |
…onGH-97703) Add auto exception chaining example to tutorial (cherry picked from commit 395b66a) Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
GH-97885 is a backport of this pull request to the 3.11 branch. |
…onGH-97703) Add auto exception chaining example to tutorial (cherry picked from commit 395b66a) Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
…on#97703) Add auto exception chaining example to tutorial
This PR aims to make the tutorial's section on exception chaining clearer using the approach I suggested in #97654 (comment), i.e. by showing "automatic" exception chaining (without
raise ... from
) first and only then moving on toraise ... from
to show how it's different and what its purpose is.Fixes #97654.