]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34429: Noted TemporaryFile behavior on non-Posix/non-Cygwin systems (GH-31547)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 25 Feb 2022 11:30:31 +0000 (03:30 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 11:30:31 +0000 (03:30 -0800)
(cherry picked from commit 53ecf9e08d35801807daf74492c090a325f995b7)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Doc/library/tempfile.rst

index b8a5fa0027ffbdb54dce132917b882e025de8f00..6b23a1bcd630bc9bfeb8dadc1eeafbb2d81a7ece 100644 (file)
@@ -62,6 +62,9 @@ The module defines the following user-callable items:
    The :py:data:`os.O_TMPFILE` flag is used if it is available and works
    (Linux-specific, requires Linux kernel 3.11 or later).
 
+   On platforms that are neither Posix nor Cygwin, TemporaryFile is an alias
+   for NamedTemporaryFile.
+
    .. audit-event:: tempfile.mkstemp fullpath tempfile.TemporaryFile
 
    .. versionchanged:: 3.5