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

2009-02-06 Thread Antoine Calando
Antoine Calando acala...@free.fr 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

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

2009-02-05 Thread Antoine Calando
New submission from Antoine Calando acala...@free.fr: 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

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

2009-02-05 Thread David W. Lambert
Changes by David W. Lambert lamber...@corning.com: -- nosy: +LambertDW ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5157 ___ ___ Python-bugs-list

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

2009-02-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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