[New-bugs-announce] [issue19456] ntpath doesn't join paths correctly when a drive is present

Guido van Rossum report at bugs.python.org
Thu Oct 31 00:12:37 CET 2013


New submission from Guido van Rossum:

(Bruce Leban, on python-ideas:)

"""
ntpath still gets drive-relative paths wrong on Windows:

>>> ntpath.join(r'\\a\b\c\d', r'\e\f')
'\\e\\f'  
# should be r'\\a\b\e\f'

>>> ntpath.join(r'C:\a\b\c\d', r'\e\f')
'\\e\\f'
# should be r'C:\e\f'

(same behavior in Python 2.7 and 3.3)
"""

(Let's also make sure PEP 428 / pathlib fixes this.)

----------
components: Library (Lib)
keywords: easy
messages: 201784
nosy: gvanrossum, pitrou
priority: normal
severity: normal
status: open
title: ntpath doesn't join paths correctly when a drive is present
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19456>
_______________________________________


More information about the New-bugs-announce mailing list