GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Dead initialization in parse_abbr function · Issue #87526 · python/cpython

Dead initialization in parse_abbr function #87526

New issue
Copy link
New issue
Copy link
Closed
Closed
Dead initialization in parse_abbr function#87526
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

alexhenrie
mannequin
opened on Mar 2, 2021
Issue body actions
BPO 43360
Nosy @alexhenrie
PRs
  • gh-87526: Remove dead initialization from parse_abbr function #24700
  • 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 2021-03-02.02:25:12.944>
    labels = ['type-feature', 'library', '3.10']
    title = 'Dead initialization in parse_abbr function'
    updated_at = <Date 2021-03-02.02:26:22.031>
    user = 'https://github.com/alexhenrie'

    bugs.python.org fields:

    activity = <Date 2021-03-02.02:26:22.031>
    actor = 'alex.henrie'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-03-02.02:25:12.944>
    creator = 'alex.henrie'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43360
    keywords = ['patch']
    message_count = 1.0
    messages = ['387895']
    nosy_count = 1.0
    nosy_names = ['alex.henrie']
    pr_nums = ['24700']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue43360'
    versions = ['Python 3.10']

    Activity

    1. alexhenrie commented on Mar 2, 2021

      @alexhenrie
      alexhenriemannequin
      on Mar 2, 2021
      MannequinAuthor
      More actions

      The parse_abbr function in _zoneinfo.c currently initializes the variable buff regardless of whether it is going to be used, and then initializes it again in the one path that does use it. The first initialization could be removed to simplify the code and clarify its intent.

      Defect identified by scan-build <https://clang-analyzer.llvm.org/scan-build.html\>

    2. alexhenrie
      added
      3.10 (EOL)end of lifeend of life
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancementA feature request or enhancement
      on Mar 2, 2021
    3. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    4. iritkatriel
      removed
      3.10 (EOL)end of lifeend of life
      on Apr 5, 2023
    5. vstinner
      added a commit that references this issue on May 12, 2023

      gh-87526: Remove dead initialization from _zoneinfo parse_abbr() (#24700

      3c2992e
    6. vstinner
      closed this as completedon May 12, 2023
    7. carljm
      added a commit that references this issue on May 12, 2023

      Merge branch 'main' into supermon

      8efd7c6
    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

      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.