There was an error while loading. Please reload this page.
1 parent 4c00d85 commit 60b9cf8Copy full SHA for 60b9cf8
1 file changed
Doc/library/tempfile.rst
@@ -257,7 +257,8 @@ The module defines the following user-callable items:
257
The file descriptor is :ref:`not inherited by child processes <fd_inheritance>`.
258
259
Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible
260
- for deleting the temporary file when done with it.
+ for closing the file descriptor (for example, using :func:`os.close`) and
261
+ deleting the temporary file (for example, using :func:`os.remove`).
262
263
If *suffix* is not ``None``, the file name will end with that suffix,
264
otherwise there will be no suffix. :func:`mkstemp` does not put a dot
0 commit comments