inspect.getsourcefile and inspect.getcomments do not work with decorated functions
未关闭
还没有人认领这个 Issue。
stdlib
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
| BPO | 34305 |
|---|---|
| Nosy | @1st1, @eric-wieser, @tirkarthi |
| PRs |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2018-08-01.07:20:53.875>
labels = ['library']
title = 'inspect.getsourcefile and inspect.getcomments do not work with decorated functions'
updated_at = <Date 2020-03-12.09:29:43.433>
user = 'https://github.com/eric-wieser'
bugs.python.org fields:
activity = <Date 2020-03-12.09:29:43.433>
actor = 'Eric Wieser'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2018-08-01.07:20:53.875>
creator = 'Eric.Wieser'
dependencies = []
files = []
hgrepos = []
issue_num = 34305
keywords = ['patch']
message_count = 4.0
messages = ['322847', '324704', '363448', '364006']
nosy_count = 5.0
nosy_names = ['yselivanov', 'Eric.Wieser', 'rmccampbell7', 'xtreak', 'Eric Wieser']
pr_nums = ['8602']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue34305'
versions = []
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 inspect.getsourcefile 和 inspect.getcomments,重点关注它们如何处理被装饰的函数。重现报告中的行为,并将其与未被装饰的函数进行比较;完成的标准是两个函数对被装饰的函数都能正常工作,并且在找到现有的 inspect 测试套件时,相关行为已由测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100