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

2018-06-17 Thread Eryk Sun
Eryk Sun added the comment: > I don't think is cross-platform, because I'm still on Windows but > in different shells. MSYS/MINGW64 and Cygwin are POSIX runtime environments implemented in DLLs, but they're layered over Windows and can thus support Windows paths such as r"C:\Temp" in additi

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

2018-06-17 Thread Patrick Lehmann
Patrick Lehmann added the comment: I don't think is cross-platform, because I'm still on Windows but in different shells. More over, pathlib currently support cross-platform comparison. I can save a configuration file on Linux and open it on Windows with such paths. I use myPath.as_posix() t

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

2018-06-17 Thread R. David Murray
R. David Murray 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

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

2018-06-17 Thread Patrick Lehmann
New submission from Patrick Lehmann : pathlib does not compare absolute paths from Windows and MinGW as equal. Windows absolute path: "C:\path\to\tool" MinGW absolute path: "/c/path/to/tool" Cygwin absolute path: "/cygdrive/c/path/to/tool" I consider this a bug, because it's the same bug but 3