-
Notifications
You must be signed in to change notification settings - Fork 0
bpo-34526: Add doc examples of multiple arguments for Path.relative_to() #1
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
base: main
Are you sure you want to change the base?
Conversation
It would be better to make docstring clearer. |
Doc/library/pathlib.rst
Outdated
*other*. If it's impossible, ValueError is raised:: | ||
Return the relative path to another path identified by *other*, each | ||
element of *other* can be either a string representing a path segment, | ||
a :class:`PurePath` or a subclass of :class:`PurePath`. If the operation |
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.
Are you sure the path segment is PurePath
?
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.
The description here is inaccurate,I will revise it as soon
Doc/library/pathlib.rst
Outdated
*other*. If it's impossible, ValueError is raised:: | ||
Return the relative path to another path identified by *other*, each | ||
element of *other* can be either a string representing a path segment, | ||
an object implementing the :class:`os.PathLike` interface which returns |
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.
others
implements the os.PathLike
?
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.
I will delete the following description:an object implementing the :class:os.PathLike
interface which returns a string
LGTM |
) Fix test_gdb.test_pycfunction() for Python built with clang -Og. Tolerate inlined functions in the gdb traceback. When _testcapimodule.c is built by clang -Og, _null_to_none() is inlined in meth_varargs() and so gdb returns _null_to_none() as the frame #1. If it's not inlined, meth_varargs() is the frame #1.
Add doc examples with multiple arguments for Path.relative_to()
https://bugs.python.org/issue34526