New submission from Mingchii Suen <crazy95...@gmail.com>:
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 ---------- components: Library (Lib) messages: 382313 nosy: crazy95sun priority: normal severity: normal status: open title: Missing parenthesis in `platform._sys_version_parser` type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42539> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com