diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index d743c2e08b0533..2835f5bb0ba241 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -995,6 +995,19 @@ sysconfig (Contributed by Miro HronĨok in :issue:`45413`.) +.. _whatsnew311-tempfile: + +tempfile +-------- + +* :class:`~tempfile.SpooledTemporaryFile` objects now fully implements the methods + of :class:`io.BufferedIOBase` or :class:`io.TextIOBase` + (depending on file mode). + This lets them work correctly with APIs that expect file-like objects, + such as compression modules. + (Contributed by Carey Metcalfe in :gh:`70363`.) + + threading ---------