#9957: document that SpooledTemporaryFile.truncate does not take size arg

This commit is contained in:
R David Murray 2012-10-06 18:26:40 -04:00
parent 8c4419304d
commit fefd3ac04c
1 changed files with 2 additions and 1 deletions

View File

@ -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.