copy.copy() does not properly copy os.environment

Open
#59,578 18 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Review environcopy.patch and environcopy_v2.patch, then inspect the os.environ entry point and how copy.copy() handles it. Compare the proposed copy behavior with the issue's requirement and verify that the resulting copy behavior is covered before submitting an updated patch.

Written by the indexing model from the issue text.

Description

3.11 stdlib type-feature
BPO 15373
Nosy @rhettinger, @gpshead, @pitrou, @bitdancer, @methane, @serhiy-storchaka, @eryksun, @MojoVampire, @sblondon, @akulakov, @kamilturek, @nightlark
Files
  • environcopy.patch: Add copy method to os.environ
  • environcopy_v2.patch: Add copy method to os.environ
  • 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 2012-07-16.16:08:57.208>
    labels = ['type-feature', 'library', '3.11']
    title = 'copy.copy() does not properly copy os.environment'
    updated_at = <Date 2022-03-02.00:42:01.639>
    user = 'https://bugs.python.org/htgoebel'
    

    bugs.python.org fields:

    activity = <Date 2022-03-02.00:42:01.639>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2012-07-16.16:08:57.208>
    creator = 'htgoebel'
    dependencies = []
    files = ['26403', '26404']
    hgrepos = []
    issue_num = 15373
    keywords = ['patch', 'needs review']
    message_count = 18.0
    messages = ['165631', '165637', '165647', '165652', '165691', '165712', '286384', '286392', '286473', '286513', '286526', '384993', '396922', '399654', '402364', '402366', '414318', '414319']
    nosy_count = 14.0
    nosy_names = ['rhettinger', 'gregory.p.smith', 'htgoebel', 'pitrou', 'r.david.murray', 'methane', 'serhiy.storchaka', 'eryksun', 'josh.r', 'sblondon', 'andrei.avk', 'kamilturek', 'rmast', 'mkatsev']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue15373'
    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.