Skip to content

Save OrderedDict import in argparse #76517

Closed

Description

@rhettinger
BPO 32336
Nosy @rhettinger
PRs
  • bpo-32336: OrderedDict import is no longer needed in argparse #4890
  • 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-01-29.20:39:31.126>
    created_at = <Date 2017-12-15.18:11:24.180>
    labels = ['3.7', 'library', 'performance']
    title = 'Save OrderedDict import in argparse'
    updated_at = <Date 2018-01-29.20:39:31.124>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2018-01-29.20:39:31.124>
    actor = 'rhettinger'
    assignee = 'bethard'
    closed = True
    closed_date = <Date 2018-01-29.20:39:31.126>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2017-12-15.18:11:24.180>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32336
    keywords = ['patch']
    message_count = 1.0
    messages = ['308416']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'bethard']
    pr_nums = ['4890']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue32336'
    versions = ['Python 3.7']

    Activity

    1. rhettinger commented on Dec 15, 2017

      @rhettinger
      ContributorAuthor

      Since regular dicts are now ordered by default, the OrderedDict import is no longer necessary. Removing it will give a small boost to start-up time.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      performancePerformance or resource usage
      on Dec 15, 2017
    3. 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)end of lifeperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions