[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result
Tim Golden
report at bugs.python.org
Tue Apr 19 11:26:35 CEST 2011
Tim Golden <mail at timgolden.me.uk> added the comment:
FWIW I agree with MvL: os.stat is one of those awkward customers
left over from the idea that Windows could be posix-compliant,
even though the relevant concepts don't actually map particularly
well. ISTM that anyone seriously wanting to determine whether
something's executable or not on Windows is going to have in
mind the precise semantics of a particular use-case and will
employ whatever API calls meet that need. I genuinely don't
believe there's any mileage in shoehorning more and more
corner-cases into os.stat on Windows.
----------
nosy: +tim.golden
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10888>
_______________________________________
More information about the Python-bugs-list
mailing list