Message196496
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. |
|
Date |
User |
Action |
Args |
2013-08-29 22:36:18 | jort.bloem | set | recipients:
+ jort.bloem, georg.brandl, ncoghlan, vstinner, serhiy.storchaka |
2013-08-29 22:36:18 | jort.bloem | set | messageid: <1377815778.82.0.998285090393.issue18879@psf.upfronthosting.co.za> |
2013-08-29 22:36:18 | jort.bloem | link | issue18879 messages |
2013-08-29 22:36:18 | jort.bloem | create | |
|