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

Eryk Sun report at bugs.python.org
Fri Jul 30 11:27:41 EDT 2021


Eryk Sun <eryksun at gmail.com> 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 functions only support backslash (e.g. the path functions such as PathCchSkipRoot). Anyway, it's a third-party issue. You'll have to report it to the MinGW maintainers if you want it resolved, or to at least get an informed reason why the change is necessary.

----------
components: +Windows
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type:  -> behavior

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


More information about the Python-bugs-list mailing list