Skip to content

Commit f3f8b6f

Browse files
authored
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (#98312)
1 parent dfb5d27 commit f3f8b6f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Doc/whatsnew/3.11.rst

+13
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,19 @@ sysconfig
995995
(Contributed by Miro Hrončok in :issue:`45413`.)
996996

997997

998+
.. _whatsnew311-tempfile:
999+
1000+
tempfile
1001+
--------
1002+
1003+
* :class:`~tempfile.SpooledTemporaryFile` objects now fully implements the methods
1004+
of :class:`io.BufferedIOBase` or :class:`io.TextIOBase`
1005+
(depending on file mode).
1006+
This lets them work correctly with APIs that expect file-like objects,
1007+
such as compression modules.
1008+
(Contributed by Carey Metcalfe in :gh:`70363`.)
1009+
1010+
9981011
threading
9991012
---------
10001013

0 commit comments

Comments
 (0)