Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (G…
…H-98312)

(cherry picked from commit f3f8b6f)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
CAM-Gerlach authored and miss-islington committed Oct 24, 2022
commit f2a9bfe957cafce347ea2f3b74e99e7398233cec
13 changes: 13 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------

Expand Down