[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

Evgeny report at bugs.python.org
Fri Apr 30 15:04:02 EDT 2021


Evgeny <ev2geny at gmail.com> added the comment:

> Eryk Sun <eryksun at gmail.com> added the comment:
> Just implement a separate function for TemporaryFile() instead of aliasing it to NamedTemporaryFile(). See msg390814.

Eryk, forgive my ignorance, but aren't in your msg390814 you are proposing yet another enhancement (separate from the issue14243, discussed here), in this case for TemporaryFile in Windows systems?

I may be mistaken, but I see that you are proposing some trick with first unlinking the file and then employing it as a temporary file using previously known fd. This "trick" is not present in the current code and does not seem to address issue14243.

Or am I talking total nonsense?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14243>
_______________________________________


More information about the Python-bugs-list mailing list