[issue40980] group names of bytes regexes are strings

Ma Lin report at bugs.python.org
Tue Jun 16 23:30:17 EDT 2020


Ma Lin <malincns at 163.com> added the comment:

Why you always want to use "utf-8" encoded identifier as group name in `bytes` pattern.

The direction is: a group name written in `bytes` pattern, and will convert to `str.
Not this direction: `str` group name -(utf8)-> `bytes` pattern -> `str` group name

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40980>
_______________________________________


More information about the Python-bugs-list mailing list