Skip to content

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lvluling
Copy link
Owner

@lvluling lvluling commented Feb 8, 2022

Add doc examples with multiple arguments for Path.relative_to()
https://bugs.python.org/issue34526

@CharlieZhao95
Copy link

It would be better to make docstring clearer.
Maybe we could add description of *other argument.

*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

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?

Copy link
Owner Author

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

*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

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?

Copy link
Owner Author

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

@CharlieZhao95
Copy link

LGTM

lvluling pushed a commit that referenced this pull request Feb 16, 2022
)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants