[Python-bugs-list] normpath error (PR#93)

Guido van Rossum guido@CNRI.Reston.VA.US
Mon, 04 Oct 1999 17:12:38 -0400


> Hmmm, I see your reasoning.
> 
> But what if (and I have not run this yet) the test path is
> d:\\\data/test\\test.dlf?
> By using this function I am saying I cannot gaurantee what the input will
> look like.
> 
> Looking at that loop, i would expect,
> d:\\\data\test\test.dlf
> since each pass adds a os.sep to the drive part after the split
> 
> a drive letter + ':' IS a detectable situation and could be handled and 
> would not upset a UNC type path of just plain \\data\test\test.dlf

If you want to submit a patch that strips excess leading separators
beyond the second, be my guest.  Personally, I think it's of marginal
value.  The drive letter doesn't enter into the equation as far as I
can tell though.

--Guido van Rossum (home page: http://www.python.org/~guido/)