Message409384
The behaviour of os.path.normpath appears to have changed between Python 3.10/Python 3.11.0a2 and 3.11.0a3+.
I don't see anything mentioned in https://docs.python.org/3.11/whatsnew/3.11.html
Is this intentional?
Old behaviour:
Python 3.10.1 (v3.10.1:2cd268a3a9, Dec 6 2021, 14:28:59) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'../Tests/image.png'
>>>
Python 3.11.0a2 (main, Dec 30 2021, 21:22:15) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'../Tests/image.png'
>>>
New behaviour:
Python 3.11.0a3+ (heads/main:af6b406, Dec 9 2021, 15:34:48) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'Tests/image.png'
>>>
Python 3.11.0a3+ (heads/main:8d7644f, Dec 30 2021, 21:32:51) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from os.path import normpath
>>> normpath('handbook/../../Tests/image.png')
'Tests/image.png'
>>>
(Found in https://github.com/sphinx-doc/sphinx/issues/10030.) |
|
Date |
User |
Action |
Args |
2021-12-30 19:38:30 | hugovk | set | recipients:
+ hugovk |
2021-12-30 19:38:30 | hugovk | set | messageid: <1640893110.04.0.882099438605.issue46208@roundup.psfhosted.org> |
2021-12-30 19:38:30 | hugovk | link | issue46208 messages |
2021-12-30 19:38:29 | hugovk | create | |
|