New submission from neonene <[email protected]>:
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')
'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 <[email protected]>
<https://bugs.python.org/issue46362>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com