Chris Withers <ch...@simplistix.co.uk> writes: > I'm curious as to why, with a file called "Foo.txt" > os.path.normcase('FoO.txt') will return "foo.txt" rather than > "Foo.txt"?
What kind of answer are you looking for? A direct answer would be: it does that because on case-insensitive filesystems, it doesn't matter what the case is, so there's no need for anything more complex than all lowercase. > Yes, I know the behaviour is documented The docstring is fairly poor, IMO. You might want to submit a bug report to improve it. > but I'm wondering if anyone can remember the rationale for that > behaviour? I can't speak to that. Does the above answer seem sufficient? -- \ “I think there is a world market for maybe five computers.” | `\ —Thomas Watson, chairman of IBM, 1943 | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list