Message164487
Richard, I think the problem with this is that it spreads the non-portable
or OS-dependent parts of the code over several places rather than
concentrating them all in one place.
After close_without_unlink(), what would happen when the context manager
exits or when the object is garbage collected? Would it then get unlinked?
My preference would be to specify the behavior of close/__exit__/GC
operations at the time of the NamedTemporaryFile creation, so that the rest
of the code can be left unchanged. |
|
Date |
User |
Action |
Args |
2012-07-01 17:19:36 | dlenski | set | recipients:
+ dlenski, jaraco, ncoghlan, pitrou, eric.smith, tim.golden, eric.araujo, r.david.murray, brian.curtin, dabrahams, davide.rizzo, sbt |
2012-07-01 17:19:35 | dlenski | link | issue14243 messages |
2012-07-01 17:19:35 | dlenski | create | |
|