We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9200d3 commit 60fe309Copy full SHA for 60fe309
Misc/NEWS.d/next/Library/2025-09-09-17-57-49.gh-issue-138720.hAtsm-.rst
@@ -1,4 +1,4 @@
1
-Fix an issue where the :class:`io.BufferedIOBase` implementation of
2
-:meth:`~io.IOBase.close` would think the I/O object was open and call
3
-:meth:`~io.IOBase.flush` which would error that the file was already closed by
4
-making the two implementations use the same logic.
+Fix an issue where :class:`io.BufferedWriter` and :class:`io.BufferedRandom`
+had different definitions of "closed" for :meth:`~io.IOBase.close` and
+:meth:`~io.IOBase.flush` which resulted in an exception when close called
+flush but flush thought the file was already closed.
0 commit comments