Use set comprehension for posixpath.commonpath()
#117641
Labels
type-feature
A feature request or enhancement
posixpath.commonpath()
#117641
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
We can use a set comprehension to check if no absolute and relative paths are mixed:
This is faster and more readable.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
os.path
#117610Linked PRs
posixpath.commonpath()
#117652The text was updated successfully, but these errors were encountered: