summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>2022-10-24 13:05:14 (GMT)
committerGitHub <noreply@github.com>2022-10-24 13:05:14 (GMT)
commitf3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db (patch)
treeaa4877318ad4a43fb8c21a1e90d9e5b32f08b4fe /Doc/whatsnew
parentdfb5d272e6b99c2c70c6c53620d2028ef00ba9f2 (diff)
downloadcpython-f3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db.zip
cpython-f3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db.tar.gz
cpython-f3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db.tar.bz2
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (#98312)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 954b89c..d9528c6 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
---------