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 jort.bloem
Recipients georg.brandl, jort.bloem, ncoghlan, serhiy.storchaka, vstinner
Date 2013-08-29.22:36:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377815778.82.0.998285090393.issue18879@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, my python-foo is not quite up to providing a solution. A partial solution would be for the file not to be closed at NamedTemporaryFile destruction, if delete==False. If delete==True, then there is no point writing to a file (though it shouldn't raise an exception, either).

Alternatively, on a unix based system, the file could be deleted, but left open. Read & write could continue as per normal, and the file would be closed automatically later.
History
Date User Action Args
2013-08-29 22:36:18jort.bloemsetrecipients: + jort.bloem, georg.brandl, ncoghlan, vstinner, serhiy.storchaka
2013-08-29 22:36:18jort.bloemsetmessageid: <1377815778.82.0.998285090393.issue18879@psf.upfronthosting.co.za>
2013-08-29 22:36:18jort.bloemlinkissue18879 messages
2013-08-29 22:36:18jort.bloemcreate