There was an error while loading. Please reload this page.
1 parent c52fb03 commit fc972faCopy full SHA for fc972fa
1 file changed
Doc/library/tempfile.rst
@@ -230,7 +230,8 @@ The module defines the following user-callable items:
230
The file descriptor is :ref:`not inherited by child processes <fd_inheritance>`.
231
232
Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible
233
- for deleting the temporary file when done with it.
+ for closing the file descriptor (for example, using :func:`os.close`) and
234
+ deleting the temporary file (for example, using :func:`os.remove`).
235
236
If *suffix* is not ``None``, the file name will end with that suffix,
237
otherwise there will be no suffix. :func:`mkstemp` does not put a dot
0 commit comments