Message390903
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? |
|
Date |
User |
Action |
Args |
2021-04-12 20:46:51 | ethan.furman | set | recipients:
+ 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, ethan smith, John Florian, ev2geny, chary314 |
2021-04-12 20:46:51 | ethan.furman | set | messageid: <1618260411.61.0.632749919847.issue14243@roundup.psfhosted.org> |
2021-04-12 20:46:51 | ethan.furman | link | issue14243 messages |
2021-04-12 20:46:51 | ethan.furman | create | |
|