summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-09 09:46:42 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-09 09:46:42 (GMT)
commit4f169a7a4df0cfb4da6c7bab40a17dddc083cf2a (patch)
tree9f7e2ae2d33eba2167b52ef14cdff2a550d8cced /Doc
parent01ad622a2cd73561b66d0f6287cb5b66de0bb0b3 (diff)
downloadcpython-4f169a7a4df0cfb4da6c7bab40a17dddc083cf2a.zip
cpython-4f169a7a4df0cfb4da6c7bab40a17dddc083cf2a.tar.gz
cpython-4f169a7a4df0cfb4da6c7bab40a17dddc083cf2a.tar.bz2
Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/tempfile.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index c143b88..b68a412 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -83,9 +83,11 @@ The module defines the following user-callable items:
causes the file to roll over to an on-disk file regardless of its size.
The returned object is a file-like object whose :attr:`_file` attribute
- is either a :class:`StringIO` object or a true file object, depending on
- whether :func:`rollover` has been called. This file-like object can be
- used in a :keyword:`with` statement, just like a normal file.
+ is either a :class:`BytesIO` or :class:`StringIO` object (depending on
+ whether specifies binary or text *mode* was specified) or a true file
+ object, depending on whether :func:`rollover` has been called. This
+ file-like object can be used in a :keyword:`with` statement, just like
+ a normal file.
.. function:: TemporaryDirectory(suffix='', prefix='tmp', dir=None)