New submission from Serhiy Storchaka: >>> pathlib.PureWindowsPath('c:/a/b', '/x/y') PureWindowsPath('c:/x/y') >>> pathlib.PureWindowsPath('//?/c:/a/b', '/x/y') PureWindowsPath('/x/y') >>> pathlib.PureWindowsPath(r'\\?\c:\a\b', '/x/y') PureWindowsPath('//?/c:/x/y')
I suppose this is because in parse_parts() altsep is replaced with sep before calling self.splitroot() in main loop but not in other loop (if drv or root). Line 76. ---------- components: Library (Lib) messages: 233308 nosy: pitrou, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: Incosistency in pathlib between / and \ type: behavior versions: Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23146> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com