[issue44778] os seperator error. str method of PureWindowsPath on Ming64 env

2021-07-30 Thread Eryk Sun
Eryk Sun added the comment: MinGW Python sets os.sep to "/" and os.altsep to "\\". It also swaps _WindowsFlavour.sep and _WindowsFlavour.altsep in pathlib. This seems dubious to me. Technically the Windows API supports both backslash and slash as path separators, but in practice many API fun

[issue44778] os seperator error. str method of PureWindowsPath on Ming64 env

2021-07-30 Thread mert
New submission from mert : PureWindowsPath('C:\\Users') When I call __str__ method of PureWindowsPath on Windows,Cygwin,Linux enviroment, I get "C:\Users" as expected. But when I run the same code on MingW environment I get "C:/Users". from pathlib import PureWindowsPath, Path p = PureWind