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

Skip to content

Commit e24728b

Browse files
committed
merge #9957: document that SpooledTemporaryFile.truncate now accepts a size arg
2 parents 5825097 + ca76ea1 commit e24728b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/library/tempfile.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ The module defines the following user-callable items:
8686
whether :func:`rollover` has been called. This file-like object can be
8787
used in a :keyword:`with` statement, just like a normal file.
8888

89+
.. versionchanged:: 3.3
90+
the truncate method now accepts a ``size`` argument.
91+
8992

9093
.. function:: TemporaryDirectory(suffix='', prefix='tmp', dir=None)
9194

Doc/whatsnew/3.3.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,6 +1964,14 @@ sequence` holding informations about the thread implementation
19641964
(:issue:`11223`).
19651965

19661966

1967+
tempfile
1968+
--------
1969+
1970+
:class:`tempfile.SpooledTemporaryFile`\'s
1971+
:meth:`~tempfile.SpooledTemporaryFile.trucate` method now accepts
1972+
a ``size`` parameter. (Contributed by Ryan Kelly in :issue:`9957`.)
1973+
1974+
19671975
textwrap
19681976
--------
19691977

0 commit comments

Comments
 (0)