-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-105375: Improve _pickle error handling #105475
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
gh-105375: Improve _pickle error handling #105475
Conversation
Error handling was deferred in some cases, which could potentially lead to exceptions being overwritten.
Slightly uncertain about commit a91713a, since it changes an exception message. EDIT: I reverted it for now. |
This reverts commit a91713a.
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry @erlend-aasland, I had trouble checking out the |
Sorry, @erlend-aasland, I could not cleanly backport this to |
(cherry picked from commit 89aac6f) Error handling was deferred in some cases, which could potentially lead to exceptions being overwritten. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
GH-105583 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit 89aac6f) Error handling was deferred in some cases, which could potentially lead to exceptions being overwritten. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
GH-105584 is a backport of this pull request to the 3.12 branch. |
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.
I think this introduced more dangerous bugs in constructors.
…ythongh-105475 (python#108543) (cherry picked from commit a429eaf)
Error handling was deferred in some cases, which could potentially lead to exceptions being overwritten.
Issue: