From: R David Murray Date: Sat, 6 Oct 2012 22:26:56 +0000 (-0400) Subject: #9957: document that SpooledTemporaryFile.truncate does not take size arg X-Git-Tag: v3.2.4rc1~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=138a314d1a4e46543ee5394bd87f8eeb06c6bb6e;p=thirdparty%2FPython%2Fcpython.git #9957: document that SpooledTemporaryFile.truncate does not take size arg --- diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index fff6c4eb5725..c143b88e2ad9 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -76,7 +76,8 @@ The module defines the following user-callable items: 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.