Any way to not create .pyc files?
Piet van Oostrum
piet at cs.uu.nl
Sat Jun 11 07:14:13 EDT 2005
>>>>> 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.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list