This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jeroen.dobbelaere
Recipients jeroen.dobbelaere
Date 2011-01-11.13:12:58
SpamBayes Score 8.788757e-07
Marked as misclassified No
Message-id <1294751581.52.0.421644635374.issue10888@psf.upfronthosting.co.za>
In-reply-to
Content
The 'os.stat' method on windows seems to be hardcoded to check the file name extension when computing the 'executable permission flag' (st_mode).

(See Modules/posixmodule.c:  win32_stat and win32_wstat)

Currently, it checks for : 
 '.bat', '.cmd', '.exe', '.com'

As dynamic libraries also must be executable on window, t should also check for : 
 '.dll'

It would be even better if the actual 'read and execute' permission is returned.
History
Date User Action Args
2011-01-11 13:13:01jeroen.dobbelaeresetrecipients: + jeroen.dobbelaere
2011-01-11 13:13:01jeroen.dobbelaeresetmessageid: <1294751581.52.0.421644635374.issue10888@psf.upfronthosting.co.za>
2011-01-11 13:12:58jeroen.dobbelaerelinkissue10888 messages
2011-01-11 13:12:58jeroen.dobbelaerecreate