[New-bugs-announce] [issue46362] os.path.abspath() needs more normalization on Windows

neonene report at bugs.python.org
Wed Jan 12 22:08:54 EST 2022

New submission from neonene <nicesalmon at gmail.com>:

3.11a3+ introduced the C version of abspath(), which shows incompletely normalized absolute path (see msg410068):

    >>> os.path.abspath(r'\\spam\\eggs. . .')
    '\\\\spam\\\\eggs. . .'
    >>> os.path.abspath('C:\\spam. . .')
    'C:\\spam. . .'
    >>> os.path.abspath('C:\\nul')

The design is efficient on startup with getpath_abspath(), but ntpath.abspath()'s result after startup should be more normalized.

components: Windows
messages: 410456
nosy: neonene, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.path.abspath() needs more normalization on Windows
type: behavior
versions: Python 3.11

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list