Doc: clarify when to use pathlib pure paths [skip issue]#143319
Closed
YASWANTH1976 wants to merge 1 commit intopython:mainfrom
Closed
Doc: clarify when to use pathlib pure paths [skip issue]#143319YASWANTH1976 wants to merge 1 commit intopython:mainfrom
YASWANTH1976 wants to merge 1 commit intopython:mainfrom
Conversation
Added explanation of when pure paths are appropriate to help beginners understand the difference between pure and concrete paths.
da-woods
reviewed
Jan 1, 2026
Comment on lines
+37
to
+39
| access a filesystem. | ||
| Use pure paths when you need to manipulate path strings | ||
| without requiring the path to exist on disk,such as when generating paths |
Contributor
There was a problem hiding this comment.
This won't be indented correctly and has some formatting issues such as missing spaces.
I personally don't think it adds much that isn't already covered by the list of points (but that's really for someone else to decide - I have no say here)
Member
|
I don't think it's useful. We already say:
I'm going to close this but if Barney really wants this addition, he can re-open this. Please read https://devguide.python.org/getting-started/pull-request-lifecycle/ for contributing to the project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added explanation of when pure paths are appropriate to help beginners understand the difference between pure and concrete paths.
📚 Documentation preview 📚: https://cpython-previews--143319.org.readthedocs.build/