[issue5157] os.stat('foo') succeds if 'foo.exe' exists on cygwin

2009-02-06 Thread Antoine Calando
Antoine Calando added the comment: Hi Martin, Actually, I just investigated the problem in the libs and did not check the python exe source code. I guess you are right, this looks more like an issue from cygwin. I was a bit irritated by hours of debugging when entering the bug, and also tire

[issue5157] os.stat('foo') succeds if 'foo.exe' exists on cygwin

2009-02-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: Why do you think this is a bug in Python? It sounds like a bug in Cygwin to me? Python delegates to the C library as-is, with not attempt to second-guessing the C library. So if the C library says "file" exists, then this is also what Python must tell you. Cl

[issue5157] os.stat('foo') succeds if 'foo.exe' exists on cygwin

2009-02-05 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5157] os.stat('foo') succeds if 'foo.exe' exists on cygwin

2009-02-05 Thread Antoine Calando
New submission from Antoine Calando : On cygwin platform, with python cygwin package: Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14) When doing an os.stat('file') in a directory where no 'file' exists but a 'file.exe' do, the function return a stat object, as if the call was done on os.stat('