[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows
Ethan Furman
report at bugs.python.org
Sun Apr 11 21:49:02 EDT 2021
Ethan Furman <ethan at stoneleaf.us> added the comment:
On 4/11/2021 3:51 PM, Jason R. Coombs wrote:
> Jason R. Coombs <jaraco at jaraco.com> added the comment:
>
> At least I and Ethan and Martin have expressed a desire for the
default, preferred usage work well in a portable environment. Requiring
`delete_on_close=False` violates that expectation.
My opinion is that no extra flags are necessary. The default of
deleting on close is fine, unless a context manager is active -- in
which case delete on CM exit. Note that an internal flag will be needed
to track the status of being in a context manager, but nothing besides
behavior in that edge case would change.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14243>
_______________________________________
More information about the Python-bugs-list
mailing list