Any way to not create .pyc files?
Terry Hancock
hancock at anansispaceworks.com
Sat Jun 11 14:46:39 EDT 2005
On Saturday 11 June 2005 06:14 am, Piet van Oostrum wrote:
> >>>>> Terry Hancock <hancock at anansispaceworks.com> (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
More information about the Python-list
mailing list