Use interactive input even if stdout is redirected

Open
#69,017 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start by reviewing the interactive console behavior and the linked dependency, bpo-17620, which concerns console input not using sys.stdin. Reproduce the case where stdout is redirected and determine whether interactive input still works. Done means the interactive console accepts input in that scenario without regressing normal console behavior.

Written by the indexing model from the issue text.

Description

stdlib topic-repl type-bug
BPO 24829
Nosy @rhettinger, @bitdancer, @vadmium, @eryksun
Dependencies
  • bpo-17620: Python interactive console doesn't use sys.stdin for input
  • 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 2015-08-08.14:48:56.820>
    labels = ['type-bug', '3.8', '3.9', '3.10']
    title = 'Use interactive input even if stdout is redirected'
    updated_at = <Date 2021-03-15.21:02:22.443>
    user = 'https://bugs.python.org/Drekin'
    

    bugs.python.org fields:

    activity = <Date 2021-03-15.21:02:22.443>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2015-08-08.14:48:56.820>
    creator = 'Drekin'
    dependencies = ['17620']
    files = []
    hgrepos = []
    issue_num = 24829
    keywords = []
    message_count = 12.0
    messages = ['248271', '249098', '249144', '249145', '249148', '249149', '249154', '249157', '249166', '249294', '249454', '249469']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'r.david.murray', 'martin.panter', 'eryksun', 'Drekin']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue24829'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.