Skip to content

allow path-like objects in program arguments in Windows #78880

Closed

Description

@guoci
mannequin
BPO 34699
Nosy @serhiy-storchaka, @guoci
PRs
  • bpo-34699: allow path-like objects in program arguments in Windows #9336
  • Superseder
  • bpo-31961: subprocess._execute_child doesn't accept a single PathLike argument for args
  • 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 = <Date 2018-11-09.08:07:29.337>
    created_at = <Date 2018-09-15.19:20:16.524>
    labels = ['3.8', '3.7', 'library']
    title = 'allow path-like objects in program arguments in Windows'
    updated_at = <Date 2018-11-09.08:07:29.337>
    user = 'https://github.com/guoci'

    bugs.python.org fields:

    activity = <Date 2018-11-09.08:07:29.337>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-09.08:07:29.337>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2018-09-15.19:20:16.524>
    creator = 'guoci'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34699
    keywords = ['patch']
    message_count = 2.0
    messages = ['325454', '325458']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'guoci']
    pr_nums = ['9336']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '31961'
    type = None
    url = 'https://bugs.python.org/issue34699'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. guoci commented on Sep 15, 2018

      guocimannequin
      MannequinAuthor

      Currently, the subprocess.Popen function allows for path-like objects in the argument list for POSIX but not in Windows.
      This PR makes Windows' subprocess.Popen accept path-like objects in the argument list.

    2. added
      3.7 (EOL)
      3.8 (EOL)
      stdlib
      on Sep 15, 2018
    3. changed the title [-]allows path-like objects in program arguments in Windows[/-] [+]allow path-like objects in program arguments in Windows[/+] on Sep 15, 2018
    4. serhiy-storchaka commented on Sep 15, 2018

      @serhiy-storchaka
      Member

      This looks like a duplicate of bpo-31961.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)3.8 (EOL)stdlib

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions