[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Remove tempfile.mktemp()

Antoine Pitrou wrote:
> Does it always work? According to the docs, """Whether the name can be
> used to open the file a second time, while the named temporary file is
> still open, varies across platforms

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