Skip to content

Commit f2a9bfe

Browse files
CAM-Gerlachmiss-islington
authored andcommitted
pythongh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (pythonGH-98312)
(cherry picked from commit f3f8b6f) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent 2a346b0 commit f2a9bfe

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)