Occasional OSError: [Errno 13] Permission denied on Windows

Alec Wysoker alecw at pobox.com
Thu Jan 5 11:51:11 EST 2006


>> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>> 13] Permission denied when calling os.remove().  This can occur with a
>> file that is not used by any other process on the machine,
>
> How do you know that?

Yeah, good point.  I don't really know.  I should have said no process
that I am aware of is using the file.  I'll give sleep a try instead of
gc.  Thanks.




More information about the Python-list mailing list