This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Missing parenthesis in `platform._sys_version_parser`
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: crazy95sun
Priority: normal Keywords:

Created on 2020-12-02 14:05 by crazy95sun, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg382313 - (view) Author: Mingchii Suen (crazy95sun) Date: 2020-12-02 14:05
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
History
Date User Action Args
2022-04-11 14:59:38adminsetgithub: 86705
2020-12-02 14:05:34crazy95suncreate