-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Question: how could I join to URL list path parts? #138
Comments
|
|
Problem is here: |
Also |
Opinions? |
I think yarl should match pathlib with respect to double slash
|
Well, a few. First one is a
I believe pathlib doesn't have such issue because it doesn't have quote anything at all, so path segment couldn't have |
@samuelcolvin |
makes sense. |
@kxepal returning to the issue. Unfortunately I don't find a time for the issue at least up to New Year. |
Sounds good for me. Will do. |
Assume I have an URL
URL('http://localhost:5984/base')
and some list of path segments like['foo', '/bar', 'baz%']
. What's the proper way to join them to url to haveURL(http://localhost:5984/base/foo/%2fbar/baz%25)
as result?So far I came to:
But that doesn't looks like good solution. Or it does?
The text was updated successfully, but these errors were encountered: