argparse: parser aliases in subparsers stores alias in dest variable
未關閉
還沒有人認領這個 Issue。
3.7 (EOL)
stdlib
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
| BPO | 36664 |
|---|---|
| Files |
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 2019-04-18.23:30:32.042>
labels = ['3.7', 'type-feature', 'library']
title = 'argparse: parser aliases in subparsers stores alias in dest variable'
updated_at = <Date 2019-11-01.01:51:18.147>
user = 'https://bugs.python.org/PeterMcEldowney'
bugs.python.org fields:
activity = <Date 2019-11-01.01:51:18.147>
actor = 'paul.j3'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2019-04-18.23:30:32.042>
creator = 'Peter McEldowney'
dependencies = []
files = ['48275']
hgrepos = []
issue_num = 36664
keywords = []
message_count = 5.0
messages = ['340515', '340525', '340595', '355759', '355779']
nosy_count = 3.0
nosy_names = ['paul.j3', 'nemeskeyd', 'Peter McEldowney']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue36664'
versions = ['Python 3.7']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從連結的 sample.py 開始,重現 argparse 子解析器別名如何寫入 dest 變數。追蹤該行為進入 CPython 的 argparse 實作,並找出需要擴充的現有命令列解析測試;當別名行為與預期的 dest 值一致,且不會導致子解析器解析出現回歸時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100