[issue33890] Pathlib does not compare Windows and MinGW paths as equal

R. David Murray report at bugs.python.org
Sun Jun 17 19:47:30 EDT 2018


R. David Murray <rdmurray at bitdance.com> added the comment:

Sorry, but these paths are not equal in in any sense that Python by itself can determine.  Support for doing this kind of comparison would have to come from MingGW or cygwin, and even if a python library exposed those capabilities, it would be via some new API, because you are effectively asking for a cross-platform comparison of paths.  At least, that's my opinion.  Regardless, this is a feature request and one with enough implications that we can't handle it in the bug tracker.  The way forward with this idea is to discuss the possibility of such an API on the python-ideas mailing list.  Maybe you could even get agreement that normal equality could implement it.  Regardless, you'll need to be able to discuss the MingGW/cygwin facilities that would allow it to be implemented as a minimum starting point.  If those facilities don't exist, there's no hope ;)

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33890>
_______________________________________


More information about the Python-bugs-list mailing list