-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-136523: fix wave.Wave_write emitting an unraisable when open raises #136529
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
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Misc/NEWS.d/next/Library/2025-07-11-03-39-15.gh-issue-136523.s7caKL.rst
Outdated
Show resolved
Hide resolved
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. 👍
Thank you for your contribution, @inventshah.
Thanks @inventshah for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
… raises (pythonGH-136529) (cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633) Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
… raises (pythonGH-136529) (cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633) Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
GH-136606 is a backport of this pull request to the 3.14 branch. |
GH-136607 is a backport of this pull request to the 3.13 branch. |
Fixes #136523, by moving
builtins.open
inside thetry-except
block and always callinginitfp
(which does not raise) forWave_write
.Wave_write.__del__()
after failed attempt to open file for write operation #136523