python / python/cpython

POpen bufsize=0 ignored with universal_newlines=True

Open
#85,394 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 3.11 3.9 (EOL) topic-IO topic-subprocess type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Description

BPO 41222
Nosy @gpshead, @pitrou, @eryksun, @ydirson
PRs
  • python/cpython#25859
  • Files
  • testproc-unbuffered.py
  • 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 2020-07-06.19:54:02.188>
    labels = ['3.10', 'type-bug', '3.9', 'expert-IO', '3.11']
    title = 'POpen bufsize=0 ignored with universal_newlines=True'
    updated_at = <Date 2021-12-22.13:01:55.073>
    user = 'https://github.com/ydirson'
    

    bugs.python.org fields:

    activity = <Date 2021-12-22.13:01:55.073>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['IO']
    creation = <Date 2020-07-06.19:54:02.188>
    creator = 'yann'
    dependencies = []
    files = ['49299']
    hgrepos = []
    issue_num = 41222
    keywords = ['patch']
    message_count = 6.0
    messages = ['373165', '392714', '392795', '392840', '409016', '409031']
    nosy_count = 4.0
    nosy_names = ['gregory.p.smith', 'pitrou', 'eryksun', 'yann']
    pr_nums = ['25859']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41222'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    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.

    Research direction

    Start with testproc-unbuffered.py, the test file attached to the issue, and review the existing python/cpython#25859 patch for the reported POpen behavior. Confirm that bufsize=0 is honored when universal_newlines=True and that the regression test demonstrates the corrected unbuffered behavior.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    operating-systems
    Issue type
    Bug
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    35/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.