[Python-checkins] cpython (3.2): #9957: document that SpooledTemporaryFile.truncate does not take size arg

r.david.murray python-checkins at python.org
Sun Oct 7 00:33:30 CEST 2012


http://hg.python.org/cpython/rev/145480af0d78
changeset:   79552:145480af0d78
branch:      3.2
parent:      79531:1dc66e654806
user:        R David Murray <rdmurray at bitdance.com>
date:        Sat Oct 06 18:26:56 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
@@ -76,7 +76,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