> Regular Windows typically won't let you remove a file when you still > have it open.
It depends. If FILE_SHARE_DELETE was passed to CreateFile when opening, you may DeleteFile it while it is still open. Otherwise, you get an error from DeleteFile. > Is this also a restriction on CYGWIN? Cygwin is a wrapper around Win32. So it "can't do" anything that Win32 can't do (like deleting a file that is still open). > I don't know > anything about CYGWIN but I could imagine that they allow unlink() to > succeed when there's still a file descriptor referencing it, and that > they will delete the file when you close it. They can't do that, because there is no Win32 mechanism for that. Regards, martin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
