]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140650: Fix write(), flush() and close() methods of io.BufferedWriter (GH-140653)
authorSachin Shah <39803835+inventshah@users.noreply.github.com>
Wed, 5 Nov 2025 19:15:27 +0000 (14:15 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Nov 2025 19:15:27 +0000 (21:15 +0200)
commit1d25b751c5382aa808dbdfd7eacd77cd793418fc
tree6f462d73c02d5199d4295fc1749f9be097fb0f87
parent3cb1ab0e5de340861afce50f338b2a9d40b04e68
gh-140650: Fix write(), flush() and close() methods of io.BufferedWriter (GH-140653)

They could raise SystemError or crash when getting the "closed" attribute
or converting it to boolean raises an exception.
Lib/test/test_io/test_bufferedio.py
Misc/NEWS.d/next/Library/2025-10-27-00-40-49.gh-issue-140650.DYJPJ9.rst [new file with mode: 0644]
Modules/_io/bufferedio.c