summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-10-06 22:26:40 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-10-06 22:26:40 (GMT)
commitfefd3ac04c6794c0ed81b410486d28d12dc8e6cf (patch)
tree583968462feec6e79e836c9ed037269ffeffc14c
parent8c4419304de589159b124e938a5c121322d22e10 (diff)
downloadcpython-fefd3ac04c6794c0ed81b410486d28d12dc8e6cf.zip
cpython-fefd3ac04c6794c0ed81b410486d28d12dc8e6cf.tar.gz
cpython-fefd3ac04c6794c0ed81b410486d28d12dc8e6cf.tar.bz2
#9957: document that SpooledTemporaryFile.truncate does not take size arg
-rw-r--r--Doc/library/tempfile.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index 936f06a..ada647d 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -86,7 +86,8 @@ The module defines the following user-callable functions:
data is spooled in memory until the file size exceeds *max_size*, or
until the file's :func:`fileno` method is called, at which point the
contents are written to disk and operation proceeds as with
- :func:`TemporaryFile`.
+ :func:`TemporaryFile`. Also, it's ``truncate`` method does not
+ accept a ``size`` argument.
The resulting file has one additional method, :func:`rollover`, which
causes the file to roll over to an on-disk file regardless of its size.