Skip to content

Missing parenthesis in platform._sys_version_parser #86705

Open

Description

@crazy95sun
mannequin
BPO 42539

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 2020-12-02.14:05:34.827>
labels = ['3.8', 'type-bug', 'library']
title = 'Missing parenthesis in `platform._sys_version_parser`'
updated_at = <Date 2020-12-02.14:05:34.827>
user = 'https://bugs.python.org/crazy95sun'

bugs.python.org fields:

activity = <Date 2020-12-02.14:05:34.827>
actor = 'crazy95sun'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2020-12-02.14:05:34.827>
creator = 'crazy95sun'
dependencies = []
files = []
hgrepos = []
issue_num = 42539
keywords = []
message_count = 1.0
messages = ['382313']
nosy_count = 1.0
nosy_names = ['crazy95sun']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue42539'
versions = ['Python 3.8']

Linked PRs

Activity

  1. crazy95sun commented on Dec 2, 2020

    crazy95sunmannequin
    MannequinAuthor

    in platform.py, _sys_version_parser
    the last part of regex is r'\[([^\]]+)\]?'
    which should be `r'(?:[([^]]+)])?'

    without this change, the question mark only make the last \] optional, not the whole part optional

    this will cause unable to detect python implementation issue in some custom build python if the [compiler] part in sys.version is missing

    will make a pull request soon
    I have o

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or error
    on Dec 2, 2020
  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

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions