input() prints to original stdout even if sys.stdout is wrapped
未关闭
还没有人认领这个 Issue。
topic-IO
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
| BPO | 28373 |
|---|---|
| Nosy | @wiggin15, @vadmium |
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 2016-10-06.09:13:03.102>
labels = []
title = 'input() prints to original stdout even if sys.stdout is wrapped'
updated_at = <Date 2016-10-10.07:29:36.502>
user = 'https://github.com/wiggin15'
bugs.python.org fields:
activity = <Date 2016-10-10.07:29:36.502>
actor = 'Drekin'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2016-10-06.09:13:03.102>
creator = 'wiggin15'
dependencies = []
files = []
hgrepos = []
issue_num = 28373
keywords = []
message_count = 5.0
messages = ['278179', '278181', '278183', '278394', '278406']
nosy_count = 3.0
nosy_names = ['wiggin15', 'martin.panter', 'Drekin']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue28373'
versions = ['Python 3.5']
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在包装 sys.stdout 后使用 input() 重现报告的行为,然后检查 input() 的实现及其相关测试。当 input() 遵循包装后的 sys.stdout,而不是输出到原始流,并且该情况有回归测试覆盖时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100