jort bloem added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18879>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to