Faults in `inspect.getattr_static` usage snippet to resolve built-in descriptors
未关闭
还没有人认领这个 Issue。
docs
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Documentation
Also, the line just below calling
__get__with no arguments if the descriptor is of one of these types is wrong. It should take the original object as well.
Originally posted by @jonathandung in #150501
Do not changes these. Instead I would recommend using types.* directly instead and open a separate PR.
Originally posted by @picnixz in https://github.com/python/cpython/pull/150504#discussion_r3309836719
Linked PRs
- gh-150507
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从此 issue 中引用的 inspect.getattr_static 文档使用代码片段开始。检查 descriptor 的 get 调用以及直接使用 types.* 的建议;当代码片段反映已达成一致的修正且不再显示错误的调用时,工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100