From f1329ce8c73644b8eb45b74ca58351af2b1e74fb Mon Sep 17 00:00:00 2001 From: picnic-sven <88426829+picnic-sven@users.noreply.github.com> Date: Sat, 22 Jul 2023 15:49:55 +0200 Subject: [PATCH] Update tempfile.rst --- Doc/library/tempfile.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index 097f7087eccab9e..517d5767ec80760 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -222,8 +222,9 @@ The module defines the following user-callable items: the file is executable by no one. The file descriptor is not inherited by child processes. - Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible - for deleting the temporary file when done with it. + Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible for closing + and deleting the temporary file (by e.g. using :func:`os.close` and + :func:`os.remove`) when done with it. If *suffix* is not ``None``, the file name will end with that suffix, otherwise there will be no suffix. :func:`mkstemp` does not put a dot