How to delete a module file

Olivier Ravard olivier.ravard at novagrid.com
Thu Mar 3 12:29:58 CET 2005


Le lundi 28 février 2005 à 17:08 +0000, Dennis Lee Bieber a écrit :
> On Mon, 28 Feb 2005 16:43:45 +0100, Olivier Ravard
> <olivier.ravard at novagrid.com> declaimed the following in
> comp.lang.python:
> 
> > 
> > Remark : This problem does not exist under Linux.
> >
> 	I think Linux just masks the situation. Windows won't let you
> delete the file because the OS still has it open (linked) to the process
> that did the import.
> 
> 	Linux deletes the directory entry, so other programs can't find
> the file -- but the OS still has an unseen link to the actual file; the
> actual file doesn't go away until the total link count falls to 0.
> 

So, what is the solution ?






More information about the Python-list mailing list