os.path.normcase rationale?

Chris Withers chris at simplistix.co.uk
Mon Sep 20 14:46:39 EDT 2010


On 16/09/2010 00:14, Gregory Ewing wrote:
> Ben Finney wrote:
>> it doesn't matter what the case is, so there's no need for
>> anything more complex than all lowercase.
>
> Also doing what was suggested would require looking at
> what's in the file system, which would be a lot of bother
> to go to for no good reason, and would fail for paths
> that don't correspond to an existing file.

.lower() is shorter to type, if that's what you want...

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk



More information about the Python-list mailing list