diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-10-06 22:26:56 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-10-06 22:26:56 (GMT) |
commit | 138a314d1a4e46543ee5394bd87f8eeb06c6bb6e (patch) | |
tree | 13d985a1b8d5aef00e100d34744d9b1123e0a884 | |
parent | 4614cc4f7fcdc4537ea98fc49308719b71093972 (diff) | |
download | cpython-138a314d1a4e46543ee5394bd87f8eeb06c6bb6e.zip cpython-138a314d1a4e46543ee5394bd87f8eeb06c6bb6e.tar.gz cpython-138a314d1a4e46543ee5394bd87f8eeb06c6bb6e.tar.bz2 |
#9957: document that SpooledTemporaryFile.truncate does not take size arg
-rw-r--r-- | Doc/library/tempfile.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index fff6c4e..c143b88 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. |