[docs] bug

Georg Brandl georg at python.org
Wed Jan 14 09:10:23 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/06/2015 11:11 PM, Natàlia Padilla Sirera wrote:
> Hi,
> 
> I have done a script that contains
> 
> with open (‘file.txt’, ‘w’) as fh: fh.write(‘blabla1’)
> 
> afterwards I do,
> 
> with open (‘FILE.txt’, ‘w’) as fh: fh.write(‘blabla2’)
> 
> the result is a file called ‘file.txt’ that contains blabla2
> 
> I think that the name of the file is not case sensitive and I think that it
> should be.

Hi Natàlia,

this is likely the behavior of your operating system.  On Windows,
file names are always case insensitive.  On MacOS X, this is
configurable for different file systems.

cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlS2JG8ACgkQN9GcIYhpnLDdKgCeJoDbmJpAN8TWr7CVJDYWBZk3
/d8AoK6gE/W4Ac6TcJA/WqpSFnS2rWnC
=CEVs
-----END PGP SIGNATURE-----


More information about the docs mailing list