[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result
report at bugs.python.org
Tue Jan 11 17:05:54 CET 2011
Brian Curtin <curtin at acm.org> added the comment:
The "Read & Execute" permission listed on a file's property window doesn't really mean anything. Executables only need read permissions  to actually be executed.
Additionally, in terms of _stat, Windows does its check by extension  but they don't specify what extensions they look for.
Adding ".dll" checking would be the most we could do here.
 See "st_mode" halfway down the page, http://msdn.microsoft.com/en-us/library/14h5k7ff(v=VS.90).aspx
components: +Extension Modules
stage: -> needs patch
versions: +Python 3.1, Python 3.2, Python 3.3
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list