"Gabriel Genellina" <[EMAIL PROTECTED]> wrote:

>On 16 dic, 04:47, Tim Roberts <[EMAIL PROTECTED]> wrote:
>> >   os.stat(selected)[ST_MODE] & (S_IXUSR|S_IXGRP|S_IXOTH
>
>>This will tell you that "x.exe" is executable, even if "x.exe" contains
>> nothing but zeros.
>
>Isn't the same with any other recipe, portable or not? Unless the OS
>actually tries to load and examine the file contents, which the OS's
>I'm aware of, don't do.

Yes, of course, you're right.  I was about to delve into a philosophical
discussion about the difference in handling this between Linux and Windows,
but they're both just conventions.  One is based on an arbitrary flag, one
is based on a file extension.  Contents are irrelevant.
-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to