You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-01-07.20:45:15.710>created_at=<Date2020-01-07.20:27:13.303>labels= ['3.8', '3.7', 'library']
title='os.path.commonpath() not so common'updated_at=<Date2020-01-07.20:45:15.709>user='https://github.com/filipp'
The documentation describes os.path.commonpath() as:
"Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError if paths contain both absolute and relative pathnames, the paths are on the different drives or if paths is empty. Unlike commonprefix(), this returns a valid path."
However, in practice the function seems to always return the *shortest* common path. Steps to reproduce:
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: