Message260565
| Author |
eryksun |
| Recipients |
Eugene Viktorov, SilentGhost, eryksun, martin.panter, terry.reedy, vstinner |
| Date |
2016-02-20.14:00:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1455976846.59.0.0876817555184.issue26385@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
> By your explanation, it sounds like it would be better
> to call unlink() before close().
Sorry, I was responding in general, because I thought you meant unlink would fail like it would for most open files on Windows, because the CRT normally doesn't open files with delete sharing. But I see what you meant now. Yes, the order needs to be reversed as unlink() and then close() for this to work. Doing the close first does raise a FileNotFoundError. |
|