[Python-checkins] cpython (merge 3.2 -> 3.3): #9957: document that SpooledTemporaryFile.truncate now accepts a size arg
r.david.murray
python-checkins at python.org
Sun Oct 7 00:33:31 CEST 2012
http://hg.python.org/cpython/rev/76feae02f48f
changeset: 79553:76feae02f48f
branch: 3.3
parent: 79549:ca6e5aec922b
parent: 79552:145480af0d78
user: R David Murray <rdmurray at bitdance.com>
date: Sat Oct 06 18:32:39 2012 -0400
summary:
#9957: document that SpooledTemporaryFile.truncate now accepts a size arg
files:
Doc/library/tempfile.rst | 3 +++
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
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -86,6 +86,9 @@
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
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1964,6 +1964,14 @@
(: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
--------
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list