[New-bugs-announce] [issue42493] pathlib.Path.__eq__ should test normalized path
Austin Scola
report at bugs.python.org
Sat Nov 28 15:38:39 EST 2020
New submission from Austin Scola <austinscola at gmail.com>:
I think it would be more useful for the pathlib.Path.__eq__ method to test the normalized path (not sure if normalized is the right terminology here).
As a concrete example I think that `PosixPath('/foo')` should equal `PosixPath('/foo/../foo')`. This is because functionally the two paths are equivalent.
----------
components: Library (Lib)
messages: 382015
nosy: ascola
priority: normal
severity: normal
status: open
title: pathlib.Path.__eq__ should test normalized path
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42493>
_______________________________________
More information about the New-bugs-announce
mailing list