aio-libs / aio-libs/yarl

Implement RFC 2396 path segments

未关闭
#474 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.5k
派生
215
平均合并
1 天 2 分钟
30 天内合并 PR
13

描述

Currently there is no such thing as segments in yarl, which could be useful when you construct your path from a list and don't want to end up chain creating lots of URL objects with some hacky approach (see #138)

It should also be possible to do:
```python
segments = ["foo", "bar/"] # with proper quoting here
url = URL("https://example.com") / segments
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。