-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-130536: Improve os.path documentation #131872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added cross-references to related functions and provided an example for os.path.join to enhance clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very messy
Return ``True`` if *path* is an absolute pathname. | ||
|
||
.. seealso:: | ||
:func:`os.path.abspath` - for converting paths to absolute paths. On Unix, that means it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a mess
.. seealso:: | ||
:func:`os.path.abspath` - for converting paths to absolute paths. On Unix, that means it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually these are put at the end of the note
'/home/bar' The return value is the | ||
concatenation of *path* and all members of *\*paths*, with exactly one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be fixed
:func:`os.path.join` - for joining paths efficiently. The | ||
*tail* part will never contain a slash; if *path* ends in a slash, *tail* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again a mess
#130557 already exists. Please do not open PRs when an open PR against the issue already exists. TiA. |
Added cross-references to related functions and provided an example for os.path.join to enhance clarity.
os.path
documentation #130536📚 Documentation preview 📚: https://cpython-previews--131872.org.readthedocs.build/