This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients Carl Osterwisch, Gabi.Davar, John Florian, chary314, dabrahams, davide.rizzo, dlenski, emma_smith, eric.araujo, eric.smith, eryksun, ethan.furman, ev2geny, jaraco, jwilk, martin.panter, ncoghlan, njs, paul.moore, piotr.dobrogost, pitrou, r.david.murray, sbt, steve.dower, tim.golden, zach.ware
Date 2021-04-12.20:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618260411.61.0.632749919847.issue14243@roundup.psfhosted.org>
In-reply-to
Content
Paul,

If "rescuing"  (i.e. "fixing" ;) NamedTemporaryFile was arduous, complicated, or had serious backwards-compatibility issues then I would completely agree with you.  However, the fix is simple, the only backwards-compatible issue is the file would still be there /while a context manager was in use/ after it had been closed (which conforms to most, if not all, users of context managers) and a file would be left on disk in the event of a hard crash (hopefully a rare occurrence).

Your proposal, on the other, is a lot of work.  Is the minor backwards compatibility worth all that work?
History
Date User Action Args
2021-04-12 20:46:51ethan.furmansetrecipients: + ethan.furman, paul.moore, jaraco, ncoghlan, pitrou, eric.smith, tim.golden, jwilk, eric.araujo, r.david.murray, njs, dabrahams, davide.rizzo, sbt, Gabi.Davar, martin.panter, piotr.dobrogost, zach.ware, dlenski, eryksun, steve.dower, Carl Osterwisch, emma_smith, John Florian, ev2geny, chary314
2021-04-12 20:46:51ethan.furmansetmessageid: <1618260411.61.0.632749919847.issue14243@roundup.psfhosted.org>
2021-04-12 20:46:51ethan.furmanlinkissue14243 messages
2021-04-12 20:46:51ethan.furmancreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.