Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/library/tempfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"for closing the file descriptor and deleting the temporary file"

and deleting the temporary file (by e.g. using :func:`os.close` and
:func:`os.remove`) when done with it.
Comment on lines +225 to +227

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please ensure lines are max 79 characters.
  • Please don't use latin abbreviations, see the devguide for more information.


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
Expand Down