[docs] [issue17415] Clarify docs of os.path.normpath()

Terry J. Reedy report at bugs.python.org
Fri Mar 15 08:23:55 CET 2013

Terry J. Reedy added the comment:

The question is what is the 'this' that may change the patch meaning. It does not seem to me that changing '/' to '\' would do that. So I suspect 'this' refers to 'collapsing'. If so, I suggest the entry be:

    Normalize a pathname (but not the case -- use normcase for that). This collapses redundant separators and up-level references so that A//B, A/B/, A/./B and A/foo/../B all become A/B. This collapsing may change the meaning of the path if it contains symbolic links!  On Windows, normpath also converts forward slashes to backward slashes.

nosy: +loewis, pitrou

Python tracker <report at bugs.python.org>

More information about the docs mailing list