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
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