Change input() to always prompt to stderr

未关闭
#46,221 29 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@johnslavik 已经在做这个了。

开始于 2026年4月14日。

评估

这个 Issue 还没有评估数据。

描述

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
    主要语言
    Python
    星标
    77.2k
    派生
    36k
    平均合并
    1 天 9 小时
    30 天内合并 PR
    558

    贡献指南

    打开贡献指南

    从这里开始

    1. 先读完整个 Issue,再读项目的贡献指南。
    2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
    3. Fork 仓库,在一个分支上完成修改。
    4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

    python/cpython 的其他 Issue

    查看 python/cpython 的全部 Issue

    相似的 Issue

    更多 Python Issue

    把新 issue 发到你的邮箱

    精选适合新手参与的 GitHub issue 摘要。