input() prints to original stdout even if sys.stdout is wrapped
Open
Nobody has claimed this yet.
topic-IO
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| 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']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior with input() after wrapping sys.stdout, then inspect the input() implementation and its related tests. Done means input() respects the wrapped sys.stdout rather than printing to the original stream, with regression coverage for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100