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

(cherry picked from commit f3f8b6fca5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Miss Islington (bot) 2022-10-24 06:13:46 -07:00 committed by GitHub
parent 3aed2ac002
commit c4ad3fce66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -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
---------