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 ncoghlan
Recipients brian.curtin, dabrahams, eric.smith, ncoghlan, pitrou, tim.golden
Date 2012-03-11.03:45:33
SpamBayes Score 0.0013275903
Marked as misclassified No
Message-id <1331437534.15.0.11806152347.issue14243@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2012-03-11 03:45:34ncoghlansetrecipients: + ncoghlan, pitrou, eric.smith, tim.golden, brian.curtin, dabrahams
2012-03-11 03:45:34ncoghlansetmessageid: <1331437534.15.0.11806152347.issue14243@psf.upfronthosting.co.za>
2012-03-11 03:45:33ncoghlanlinkissue14243 messages
2012-03-11 03:45:33ncoghlancreate