AF_DECnet is missing from socket.AddressFamily
未关闭
还没有人认领这个 Issue。
3.12
3.13
3.14
stdlib
topic-socket
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
This code populates the AddressFamily enum:
IntEnum._convert_(
'AddressFamily',
__name__,
lambda C: C.isupper() and C.startswith('AF_'))
But AF_DECnet isn't all uppercase so it's currently excluded. Do we need the isupper() test? I don't see anything that begins with AF_ in socket other than the existing members of AddressFamily and AF_DECnet.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs
- gh-127548
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 socket 模块开始,该模块中的 AddressFamily 由 IntEnum.convert() 填充,并检查 AF_* 名称,尤其是 AF_DECnet。查看链接的 PR gh-127548 和现有的 socket 测试;完成的标准是 AF_DECnet 在 socket.AddressFamily 中得到表示,且不会导致其他地址族成员出现回归。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100