summaryrefslogtreecommitdiffstats
path: root/Doc/library/tempfile.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-10-06 22:32:39 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-10-06 22:32:39 (GMT)
commitca76ea16ad616fb3c486fbe55d93548f34a7e505 (patch)
tree3f373e680a6563befa92b6a11eadf0303216345f /Doc/library/tempfile.rst
parent92a29b5d35fbe9d3327b37630194c48579da1899 (diff)
parent138a314d1a4e46543ee5394bd87f8eeb06c6bb6e (diff)
downloadcpython-ca76ea16ad616fb3c486fbe55d93548f34a7e505.zip
cpython-ca76ea16ad616fb3c486fbe55d93548f34a7e505.tar.gz
cpython-ca76ea16ad616fb3c486fbe55d93548f34a7e505.tar.bz2
#9957: document that SpooledTemporaryFile.truncate now accepts a size arg
Diffstat (limited to 'Doc/library/tempfile.rst')
-rw-r--r--Doc/library/tempfile.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index dfeb250..96ead1f 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -86,6 +86,9 @@ The module defines the following user-callable items:
whether :func:`rollover` has been called. This file-like object can be
used in a :keyword:`with` statement, just like a normal file.
+ .. versionchanged:: 3.3
+ the truncate method now accepts a ``size`` argument.
+
.. function:: TemporaryDirectory(suffix='', prefix='tmp', dir=None)