Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 138a314

Browse files
committed
#9957: document that SpooledTemporaryFile.truncate does not take size arg
1 parent 4614cc4 commit 138a314

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/tempfile.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ The module defines the following user-callable items:
7676
data is spooled in memory until the file size exceeds *max_size*, or
7777
until the file's :func:`fileno` method is called, at which point the
7878
contents are written to disk and operation proceeds as with
79-
:func:`TemporaryFile`.
79+
:func:`TemporaryFile`. Also, it's ``truncate`` method does not
80+
accept a ``size`` argument.
8081

8182
The resulting file has one additional method, :func:`rollover`, which
8283
causes the file to roll over to an on-disk file regardless of its size.

0 commit comments

Comments
 (0)