[New-bugs-announce] [issue26329] os.path.normpath("//") returns //

Fred Rolland report at bugs.python.org
Wed Feb 10 09:58:05 EST 2016


New submission from Fred Rolland:

Hi,

os.path.normpath("//") returns '//'

I would expect to be '/'

>>> os.path.normpath("//")
'//'
>>> os.path.normpath("///")
'/'
>>> os.path.normpath("////")
'/'

----------
components: Library (Lib)
messages: 260016
nosy: Fred Rolland
priority: normal
severity: normal
status: open
title: os.path.normpath("//") returns //
versions: Python 2.7, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list