[Python-checkins] cpython (2.7): #9957: document that SpooledTemporaryFile.truncate does not take size arg
r.david.murray
python-checkins at python.org
Sun Oct 7 00:33:28 CEST 2012
http://hg.python.org/cpython/rev/63c3a3f28b42
changeset: 79551:63c3a3f28b42
branch: 2.7
parent: 79517:2c398a78dba8
user: R David Murray <rdmurray at bitdance.com>
date: Sat Oct 06 18:26:40 2012 -0400
summary:
#9957: document that SpooledTemporaryFile.truncate does not take size arg
files:
Doc/library/tempfile.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -86,7 +86,8 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list