-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-117584: Raise TypeError for non-paths in posixpath.relpath()
#117585
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
gh-117584: Raise TypeError for non-paths in posixpath.relpath()
#117585
Conversation
Misc/NEWS.d/next/Core and Builtins/2024-04-06-16-42-34.gh-issue-117584.hqk9Hn.rst
Outdated
Show resolved
Hide resolved
…e-117584.hqk9Hn.rst Co-authored-by: AN Long <[email protected]>
If the |
….gh-issue-117584.hqk9Hn.rst" This reverts commit 27d0c70.
…e-117584.hqk9Hn.rst Co-authored-by: AN Long <[email protected]>
No we can not, that doesn't work for Pathlike objects nor bytes. |
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.
LGTM.
@serhiy-storchaka can we back port this to 3.12? It's a pure bug fix. |
GH-119388 is a backport of this pull request to the 3.12 branch. |
I do not think this is a bug fix. Normally you should not pass |
Thanks, closed the pull request. |
posixpath.relpath()
#117584