[Python-checkins] gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (GH-98312)

miss-islington webhook-mailer at python.org
Mon Oct 24 09:13:51 EDT 2022


https://github.com/python/cpython/commit/c4ad3fce6653020cfe16c2512faedc3be80ed09d
commit: c4ad3fce6653020cfe16c2512faedc3be80ed09d
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-24T06:13:46-07:00
summary:

gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (GH-98312)

(cherry picked from commit f3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach at Gerlach.CAM>

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 954b89c82792..d9528c62e67c 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
 ---------
 



More information about the Python-checkins mailing list