diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-05 12:27:45 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-05 12:27:45 (GMT) |
commit | d967fc9da2c5c094865514bd213dd702698e4dad (patch) | |
tree | 4cb062e9dc26d0e0f10e89618a9881d7c7a0b306 /Doc/library/tempfile.rst | |
parent | 7088b99eb8adfe16b5602bb7447d760915036a26 (diff) | |
download | cpython-d967fc9da2c5c094865514bd213dd702698e4dad.zip cpython-d967fc9da2c5c094865514bd213dd702698e4dad.tar.gz cpython-d967fc9da2c5c094865514bd213dd702698e4dad.tar.bz2 |
Issue #21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is available
Diffstat (limited to 'Doc/library/tempfile.rst')
-rw-r--r-- | Doc/library/tempfile.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index d78159d..4ad7d9c 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -54,6 +54,13 @@ The module defines the following user-callable items: underlying true file object. This file-like object can be used in a :keyword:`with` statement, just like a normal file. + The :py:data:`os.O_TMPFILE` flag is used if it is available and works + (Linux-specific, require Linux kernel 3.11 or later). + + .. versionchanged:: 3.5 + + The :py:data:`os.O_TMPFILE` flag is now used if available. + .. function:: NamedTemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix='', prefix='tmp', dir=None, delete=True) |