Antoine Pitrou wrote:
On Wed, 20 Mar 2019 11:25:53 +1300
Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:

So use NamedTemporaryFile(delete = False) and close it before passing
it to the other program.

How is it more secure than using mktemp()?

It's not, but it solves the problem someone suggested of another
program not being able to access and/or delete the file.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to