Skip to content

os.dup2(fd, fd, inheritable=False) behaves inconsistently #77043

Open
@izbyshev

Description

@izbyshev
BPO 32862
Nosy @benjaminp, @eryksun, @izbyshev
PRs
  • bpo-32862: Make os.dup2(fd, fd) a no-op for valid fd #5713
  • 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 2018-02-17.03:24:02.305>
    labels = ['type-bug', '3.8', '3.9', '3.10', 'extension-modules', 'library']
    title = 'os.dup2(fd, fd, inheritable=False) behaves inconsistently'
    updated_at = <Date 2021-03-20.14:32:55.054>
    user = 'https://github.com/izbyshev'

    bugs.python.org fields:

    activity = <Date 2021-03-20.14:32:55.054>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Extension Modules', 'Library (Lib)']
    creation = <Date 2018-02-17.03:24:02.305>
    creator = 'izbyshev'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32862
    keywords = ['patch']
    message_count = 3.0
    messages = ['312266', '312295', '312298']
    nosy_count = 3.0
    nosy_names = ['benjamin.peterson', 'eryksun', 'izbyshev']
    pr_nums = ['5713']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32862'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9only security fixesextension-modulesC modules in the Modules dirstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions