mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
#9957: document that SpooledTemporaryFile.truncate now accepts a size arg
This commit is contained in:
commit
ca76ea16ad
2 changed files with 11 additions and 0 deletions
|
|
@ -86,6 +86,9 @@ The module defines the following user-callable items:
|
||||||
whether :func:`rollover` has been called. This file-like object can be
|
whether :func:`rollover` has been called. This file-like object can be
|
||||||
used in a :keyword:`with` statement, just like a normal file.
|
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)
|
.. function:: TemporaryDirectory(suffix='', prefix='tmp', dir=None)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1964,6 +1964,14 @@ sequence` holding informations about the thread implementation
|
||||||
(:issue:`11223`).
|
(: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
|
textwrap
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue