urllib.parse - quote/unquote documentation issues
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
https://docs.python.org/3/library/urllib.parse.html
- It's my understanding that the arguement in the displayed usage shows the default. So:
urllib.parse.quote(string, safe='/', encoding=None, errors=None)
means thaterrorsdefaults toNoneType, however, the documentation just below that says:
"errors defaults to 'strict'
-
quote: There isn't a list of possible values for the "errors" argument -
unquote- There isn't a list of possible values for the "errors" argument -
unquote-
errors defaults to 'replace', meaning invalid sequences are replaced by a placeholder character.
What "placeholder character" is it that's used?
unquote
encoding defaults to 'utf-8'. errors defaults to 'replace', meaning invalid sequences are replaced by a placeholder character.
Is a single line. errors should be on a new line (all arguements for all functions really should always be on a new line unless there's a compelling reason not to. To do otherwise significantly impedes readability, while increasing the chances of misunderstanding).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 urllib.parse 文档页面开始,检查 quote 和 unquote 的签名以及周围参数的说明。解决已报告的默认值、errors 的值列表、占位符字符说明和格式问题,确保页面清楚地记录每个函数的参数和行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100