[issue23755] tempfile.NamedTemporaryFile should be able to toggle "delete"

2015-03-23 Thread Stephen Gallagher
New submission from Stephen Gallagher: Currently, NamedTemporaryFile takes an attribute at initialization that allows it to remove the temporary file on going out of scope or else leave it around. However, it's not possible to change this after the fact. It would be a much more sen

[issue23755] tempfile.NamedTemporaryFile should be able to toggle "delete"

2015-03-23 Thread Stephen Gallagher
Stephen Gallagher added the comment: Oops, the temporary code I sent indicated that I was overriding the unlink() function (which I also tried, just in case __del__ was somehow protected). Neither monkeypatching unlink nor __del__ actually worked