Message155375
Dave, decoupling the lifecycle of the created file from the object that created it is exactly what delete=False already covers. The complicated dance in NamedTemporaryFile is only to make *__del__* work a bit more reliably during process shutdown (due to some messy internal problems with what CPython is doing at that point). If you're doing deterministic cleanup (even via atexit), you don't need any of that - you can just use os.unlink(). |
|
Date |
User |
Action |
Args |
2012-03-11 03:45:34 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, eric.smith, tim.golden, brian.curtin, dabrahams |
2012-03-11 03:45:34 | ncoghlan | set | messageid: <1331437534.15.0.11806152347.issue14243@psf.upfronthosting.co.za> |
2012-03-11 03:45:33 | ncoghlan | link | issue14243 messages |
2012-03-11 03:45:33 | ncoghlan | create | |
|