How do I create a named temporary file on windows in Python?
- by Chris B.
I've got a Python program that needs to create a named temporary file which will be opened and closed a couple times over the course of the program, and should be deleted when the program exits. Unfortunately, none of the options in tempfile seem to work:
TemporaryFile doesn't have a visible name
NamedTemporaryFile creates a file-like object. I…