inspect.getsourceslines() consider lambda of one line only
未關閉
還沒有人認領這個 Issue。
3.10
3.9 (EOL)
extension-modules
OS-windows
stdlib
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
| BPO | 44474 |
|---|---|
| Nosy | @pfmoore, @tjguk, @zware, @zooba, @Welgriv |
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 2021-06-21.13:33:42.251>
labels = ['type-bug', '3.9', '3.10', 'extension-modules', 'library', 'OS-windows']
title = 'inspect.getsourceslines() consider lambda of one line only'
updated_at = <Date 2021-06-21.13:33:42.251>
user = 'https://github.com/Welgriv'
bugs.python.org fields:
activity = <Date 2021-06-21.13:33:42.251>
actor = 'Welgriv'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Extension Modules', 'Library (Lib)', 'Windows']
creation = <Date 2021-06-21.13:33:42.251>
creator = 'Welgriv'
dependencies = []
files = []
hgrepos = []
issue_num = 44474
keywords = []
message_count = 1.0
messages = ['396245']
nosy_count = 5.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'Welgriv']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44474'
versions = ['Python 3.9', 'Python 3.10']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在 Windows 上使用單行 lambda 重現 inspect.getsourcelines() 回報的行為。閱讀 inspect 模組的原始碼擷取行為,並將結果與 issue 中描述的預期處理方式進行比較。行為完成修正並由適當的回歸測試涵蓋後,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100