It really reproduces for me.
nixon:~ matt$ touch a111 nixon:~ matt$ python Python 2.7.2 (default, Nov 14 2011, 19:37:59) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> f = file('A111', 'w') >>> f.write('test') >>> f.close() >>> nixon:~ matt$ cat a111 test
Also on mac.
nixon:~ matt$ uname -a Darwin nixon.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 nixon:~ matt$ python --version Python 2.7.2
I suspect you will find that what is happening is that we both use HFS, which is a case-insensitive file system.
source share