[Python-Dev] PEP 3147, __pycache__ directories and umask

"Martin v. Löwis" martin at v.loewis.de
Mon Mar 22 16:52:03 CET 2010


> Or maybe you have a better idea?  What's the equivalent situation on Windows
> and how would things work there?

On Windows, this problem is easy: create the directory with no
specification of an ACL, and it will (usually) inherit the ACL of the
parent directory. IOW, the same users will have write access to
__pycache__ as to the parent directory.

It is possible to defeat this machinery, by setting ACL entries on the
parent that explicitly don't get inherited, or that only apply to
subdirectories. In this case, I would say "tough luck": this is what the
users requested, so it may have a reason.

Regards,
Martin


More information about the Python-Dev mailing list