Add customization to country code second-level domains in DefaultPolicy of lib http.cookiejar
未关闭
还没有人认领这个 Issue。
stdlib
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
Feature or enhancement
Proposal:
This is a feature request of
- adding a "additional_country_code_slds" attribute to DefaultPolicy in lib
http.cookiejar - updating the default list of country code slds, which is previously discussed in #135528
The idea is basically from @Zheaoli. yes I think hard code is never a good idea because it's not even possible to add all country code slds to the list, since every country has its unique naming strategy (or it could be incrediblely long). Just updating "well-known slds" is kind of meaningless, I think.
So I think we can make the sld list customizable, let users to set them in their specific scene.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
#135529
#135528
Linked PRs
- gh-135569
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 lib http.cookiejar 中的 DefaultPolicy 开始,然后阅读讨论 #135528 和 #135529,以及关联的 PR gh-135569。完成的标准是 DefaultPolicy 支持 additional_country_code_slds 自定义,并且相关更改和测试覆盖国家/地区代码 SLD 的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100