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

mert report at bugs.python.org
Fri Jul 30 09:41:30 EDT 2021


New submission from mert <mertdemirbey1 at gmail.com>:

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 = PureWindowsPath('C:\\Users')

print(str(p))

----------
messages: 398548
nosy: demirbey
priority: normal
severity: normal
status: open
title: os seperator error. str method of PureWindowsPath on Ming64 env
versions: Python 3.8

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


More information about the Python-bugs-list mailing list