Execution model reference should cover `closure` arg to `exec` & `eval`
未关闭
还没有人认领这个 Issue。
3.13
3.14
docs
triaged
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
When the closure parameter was added to exec and eval for Python 3.11, it rendered the "Interaction with dynamic features" part of the execution model reference slightly out of date: https://docs.python.org/3/reference/executionmodel.html#interaction-with-dynamic-features
The text remains accurate for string execution, but needs updating to correctly cover execution of code objects with closure variable references.
Linked PRs
- gh-155014
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中链接的执行模型参考文档的“Interaction with dynamic features”部分开始,并查看链接的 PR gh-155014 以了解已有工作。更新该参考文档,使其对于字符串执行仍然准确,同时也涵盖通过 exec 和 eval 传递的、包含闭包变量引用的代码对象。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100