diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-10-06 22:33:08 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-10-06 22:33:08 (GMT) |
commit | e24728bb9e0679db5371ec38d54f8b30ff8c51b7 (patch) | |
tree | 979368dbeeec2bdddb922a128ec90e4907fc5069 | |
parent | 5825097ee2e2b2c614b53bea09a041b27b0da992 (diff) | |
parent | ca76ea16ad616fb3c486fbe55d93548f34a7e505 (diff) | |
download | cpython-e24728bb9e0679db5371ec38d54f8b30ff8c51b7.zip cpython-e24728bb9e0679db5371ec38d54f8b30ff8c51b7.tar.gz cpython-e24728bb9e0679db5371ec38d54f8b30ff8c51b7.tar.bz2 |
merge #9957: document that SpooledTemporaryFile.truncate now accepts a size arg
-rw-r--r-- | Doc/library/tempfile.rst | 3 | ||||
-rw-r--r-- | Doc/whatsnew/3.3.rst | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index dfeb250..96ead1f 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -86,6 +86,9 @@ The module defines the following user-callable items: whether :func:`rollover` has been called. This file-like object can be used in a :keyword:`with` statement, just like a normal file. + .. versionchanged:: 3.3 + the truncate method now accepts a ``size`` argument. + .. function:: TemporaryDirectory(suffix='', prefix='tmp', dir=None) diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index b32b2a6..cb7dd83 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1964,6 +1964,14 @@ sequence` holding informations about the thread implementation (:issue:`11223`). +tempfile +-------- + +:class:`tempfile.SpooledTemporaryFile`\'s +:meth:`~tempfile.SpooledTemporaryFile.trucate` method now accepts +a ``size`` parameter. (Contributed by Ryan Kelly in :issue:`9957`.) + + textwrap -------- |