Why the file mode of .pyc files has x?
steve at REMOVE-THIS-cybersource.com.au
Mon Sep 28 15:22:03 CEST 2009
On Mon, 28 Sep 2009 17:01:40 +1000, Cameron Simpson wrote:
> On 26Sep2009 10:24, Peng Yu <pengyu.ut at gmail.com> wrote: | >
> [steve at sylar test]$ ls -l
> | > total 16
> | > -rw-rw-r-- 1 steve steve 6 2009-09-26 23:06 test.py | > -rw-rw-r--
> 1 steve steve 94 2009-09-26 23:08 test.pyc | >
> | > Have you checked the umask of your system? |
> | Here are my test case. If the .py file has the 'x' mode, the |
> corresponding .pyc file also has the 'x' mode after the .py file is |
> Yes, I see this too.
Is this a problem?
Taking a wild guess, I'd imagine that the .pyc file gets its permissions
copied from the .py file. I don't see that as a major issue. A buglet,
rather than a bug, at worst.
More information about the Python-list