Message310484
Just tested something that I'd assumed and it turned out I was wrong:
>>> p1 = PureWindowsPath(r"C:\a\b\..\c")
>>> p2 = PureWindowsPath(r"C:\a\c")
>>> p1 == p2
False
>>> p1, p2
(PureWindowsPath('C:/a/b/../c'), PureWindowsPath('C:/a/c'))
So PureWindowsPath already doesn't collapse '..' elements (as they could change meaning in the presence of symlinks), so that's a point against the "what if everyone started doing str(p1).lower() == str(p2).lower() instead" argument. |
|
Date |
User |
Action |
Args |
2018-01-23 08:30:53 | steve.dower | set | recipients:
+ steve.dower, paul.moore, pitrou, tim.golden, benrg, zach.ware |
2018-01-23 08:30:53 | steve.dower | set | messageid: <1516696253.84.0.467229070634.issue32612@psf.upfronthosting.co.za> |
2018-01-23 08:30:53 | steve.dower | link | issue32612 messages |
2018-01-23 08:30:53 | steve.dower | create | |
|