Message371633
> a non-ascii group name will raise an error in bytes, even if encoded
Looks like this is a language limitation:
>>> b'é'
File "<stdin>", line 1
SyntaxError: bytes can only contain ASCII literal characters.
No problem if you use escaped character:
>>> re.match(b'(?P<\xe9>)', b'').groupdict()
{'é': b''}
There may be some inconveniences in your program, but IMO there is nothing wrong, maybe this issue can be closed. |
|
Date |
User |
Action |
Args |
2020-06-16 10:30:47 | malin | set | recipients:
+ malin, ezio.melotti, mrabarnett, matpi |
2020-06-16 10:30:47 | malin | set | messageid: <1592303447.95.0.542484821211.issue40980@roundup.psfhosted.org> |
2020-06-16 10:30:47 | malin | link | issue40980 messages |
2020-06-16 10:30:47 | malin | create | |
|