Why the file mode of .pyc files has x?
pengyu.ut at gmail.com
Tue Sep 29 03:13:51 CEST 2009
On Mon, Sep 28, 2009 at 8:22 AM, Steven D'Aprano
<steve at remove-this-cybersource.com.au> wrote:
> 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.
Although this is a small issue, I still think that it is annoying. If
it can be fixed in the future version of python, that will be great.
More information about the Python-list