hide command prompt when using subprocess.Popen with shell=False on Windows

Open
#74,268 32 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with test.py, the uploaded script for checking whether subprocess spawns additional Windows; use it to reproduce the command-prompt behavior with shell=False. Review the existing PRs listed in the issue and the patch-review discussion before making changes. Done means the relevant subprocess invocation no longer opens an unwanted command prompt on Windows and the behavior is covered by a reproducible test.

Written by the indexing model from the issue text.

Description

3.11 easy OS-windows stdlib topic-subprocess type-feature
BPO 30082
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba, @ohn0, @ammgws
PRs
  • python/cpython#3013
  • python/cpython#19014
  • Files
  • test.py: Script to test if subprocess spawns additional windows
  • 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 2017-04-16.17:26:26.499>
    labels = ['easy', 'type-feature', 'library', 'OS-windows', '3.11']
    title = 'hide command prompt when using subprocess.Popen with shell=False on Windows'
    updated_at = <Date 2021-11-09.13:15:20.475>
    user = 'https://bugs.python.org/iMath'
    

    bugs.python.org fields:

    activity = <Date 2021-11-09.13:15:20.475>
    actor = 'swgmma'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2017-04-16.17:26:26.499>
    creator = 'iMath'
    dependencies = []
    files = ['48938']
    hgrepos = []
    issue_num = 30082
    keywords = ['patch', 'easy']
    message_count = 30.0
    messages = ['291760', '291815', '329979', '330091', '362978', '362979', '363046', '363060', '363116', '363143', '364227', '403897', '404094', '404095', '404122', '404261', '404264', '405151', '405166', '405177', '405205', '405269', '405285', '405298', '405302', '405307', '405309', '405362', '405576', '406019']
    nosy_count = 8.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'iMath', 'ohno', 'swgmma']
    pr_nums = ['3013', '19014']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30082'
    versions = ['Python 3.11']
    

    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.