[Python-Dev] os.path.normcase rationale? (original) (raw)

Chris Withers chris at simplistix.co.uk
Tue Oct 5 10:24:21 CEST 2010


On 25/09/2010 15:45, Guido van Rossum wrote:

The solution may well be OS specific. Solutions for Windows and OS X have already been pointed out. If it can't be done for other Unix versions, I think returning the input unchanged on those platform is a fine fallback (as it is for non-existent filenames).

Spot on, especially as the "default" of case perserving and case sensitive will likely cover anything where an FS-specific solution can't be found - I'd hazard a guess that the reason the FS-sepcific solution can't be found in some cases is because for case preserving and case sensitive situations, there really is no need for such an api ;-)

Chris



More information about the Python-Dev mailing list