Author pitrou
Recipients Kevin.Norris, eryksun, pitrou, steve.dower, tim.golden, zach.ware
Date 2014-09-06.10:57:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Since both paths are valid and both paths refer to the same file, some developers may find this result counterintuitive.

On the other hand the proposed solution is regular. If you input an extended path, you get an extended path as output.

There are other factors that can come into play, such as hard links under Unix (and perhaps under Windows too). The recommended way to check if two paths point to the same file is still os.path.samefile().

Another approach would be for pathlib to *always* use extended paths internally on Windows absolute paths; I don't know which side effects that could have, though.

Note we could also add methods to switch from the extended to the regular form and vice-versa.
Date User Action Args
2014-09-06 10:57:31pitrousetrecipients: + pitrou, tim.golden, zach.ware, eryksun, steve.dower, Kevin.Norris
2014-09-06 10:57:31pitrousetmessageid: <>
2014-09-06 10:57:31pitroulinkissue22299 messages
2014-09-06 10:57:31pitroucreate