Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save OrderedDict import in argparse #76517

Closed
rhettinger opened this issue Dec 15, 2017 · 1 comment
Closed

Save OrderedDict import in argparse #76517

rhettinger opened this issue Dec 15, 2017 · 1 comment
Labels
3.7 (EOL) end of life performance Performance or resource usage stdlib Python modules in the Lib dir

Comments

@rhettinger
Copy link
Contributor

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']

    @rhettinger
    Copy link
    Contributor Author

    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.

    @rhettinger rhettinger added the 3.7 (EOL) end of life label Dec 15, 2017
    @rhettinger rhettinger added stdlib Python modules in the Lib dir performance Performance or resource usage labels Dec 15, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life performance Performance or resource usage stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant