Fix undocumented method `CookieJar.clear_expired_cookies` in lib `http.cookiejar`
未关闭
还没有人认领这个 Issue。
docs
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Although there is low possibility to call this method if you are using DefaultCookiePolicy, but as a method of CookieJar that could be used(do not start with _, and would be used when users are customizing their own policies), the method is supposed to be documented.
IMO we can document it in case of ppl are customizing their own policy instead of using DefaultCookiePolicy, while they need this func to write their own expiration logic.
PR: #135882
Linked PRs
- gh-135882
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
审查 http.cookiejar 的文档和现有的 PR #135882,重点关注公共方法 CookieJar.clear_expired_cookies。完成的标准是:在不改变该方法行为的情况下,为实现自定义 cookie 策略的用户编写该方法的文档。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 20/100