Change input() to always prompt to stderr

Open
#46,221 29 comments 0 reactions 1 assignee View on GitHub

@johnslavik is already working on this.

Since Apr 14, 2026.

Assessment

This issue has not been assessed yet.

Description

docs
BPO 1927
Nosy @terryjreedy, @jaraco, @ezio-melotti, @merwok, @vadmium, @serhiy-storchaka, @iritkatriel
Files
  • promptOutputFix.patch: A proposed patch to print raw_input prompts to standard out.
  • promptOutputFix3.patch: Fixes the input prompt issue on the Python3 branch.
  • promptOutputFix3.v2.patch
  • promptOutputFix3.v3.patch
  • 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 2008-01-24.20:21:17.610>
    labels = ['interpreter-core', 'type-bug', '3.11']
    title = 'Change input() to always prompt to stderr'
    updated_at = <Date 2022-01-17.18:23:32.143>
    user = 'https://github.com/smontanaro'
    

    bugs.python.org fields:

    activity = <Date 2022-01-17.18:23:32.143>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2008-01-24.20:21:17.610>
    creator = 'skip.montanaro'
    dependencies = []
    files = ['27269', '27270', '41246', '41654']
    hgrepos = []
    issue_num = 1927
    keywords = ['patch']
    message_count = 26.0
    messages = ['61652', '61655', '116936', '154049', '171087', '171088', '177966', '223493', '241693', '246392', '255080', '255779', '255796', '255933', '255955', '258571', '258576', '258578', '259608', '259635', '259636', '259643', '259754', '268543', '410508', '410815']
    nosy_count = 13.0
    nosy_names = ['terry.reedy', 'jaraco', 'ggenellina', 'ezio.melotti', 'eric.araujo', 'mdomingues', 'martin.panter', 'serhiy.storchaka', 'Drekin', 'Daniel.Gonzalez', 'bhuvan', 'Carvell Scott', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1927'
    versions = ['Python 3.11']
    

    Linked PRs
    • gh-146161
    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.