projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4614cc4
)
#9957: document that SpooledTemporaryFile.truncate does not take size arg
author
R David Murray
<rdmurray@bitdance.com>
Sat, 6 Oct 2012 22:26:56 +0000
(18:26 -0400)
committer
R David Murray
<rdmurray@bitdance.com>
Sat, 6 Oct 2012 22:26:56 +0000
(18:26 -0400)
Doc/library/tempfile.rst
patch
|
blob
|
history
diff --git
a/Doc/library/tempfile.rst
b/Doc/library/tempfile.rst
index fff6c4eb57251c167b4a64c7b575915ef5011800..c143b88e2ad913581e23819d73e3ae134cf89879 100644
(file)
--- 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.