python / python/cpython

Incorrect default compresslevel (9) in gzip documentation

未关闭
#152,633 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

docs
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

Documentation

The default compresslevel for gzip.open(), the GzipFile constructor, and gzip.compress() is COMPRESS_LEVEL_TRADEOFF (6). The signatures and the "Changed in version" notes in Doc/library/gzip.rst already reflect this (it says "the default compression level was reduced to 6, down from 9").
However, a few places still state the default is 9 and should be updated:-

  1. the gzip.open() docstring in Lib/gzip.py
  2. the GzipFile.init docstring in Lib/gzip.py
  3. the GzipFile paragraph in Doc/library/gzip.rst
Linked PRs
  • gh-152634

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

阅读 Lib/gzip.py 和 Doc/library/gzip.rst,针对现有签名和版本说明检查列出的三个 docstring 和段落位置。完成的标准是,这些位置中所有剩余的表述都一致地将默认压缩级别描述为 6,而不是 9。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation
Issue 类型
文档
难度
1/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
30/100

把新 issue 发到你的邮箱

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