On Saturday 11 June 2005 06:14 am, Piet van Oostrum wrote:
> >>>>> Terry Hancock <[EMAIL PROTECTED]> (TH) wrote:
> >TH> It looks to me like Python just deleted a read-only file owned by
> >TH> root in order to replace it with a new pyc file.  Can somebody
> >TH> explain that to me?!  Isn't that supposed to be impossible?
> 
> If the directory is writable, you can delete a file and write a new one
> with the same name. The permissions of the file itself are of no importance
> in this case.

Yeah, I guess that must be so.  I wonder why I never noticed it, though.

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to