Message371692
And there's no need for a cryptic encoding like cp1250 for this problem to arise. Here is a simple example with Python's default encoding utf-8:
```
>>> a = "ú"
>>> b = list(re.match(b"(?P<" + a.encode() + b">)", b"").groupdict())[0]
>>> a.isidentifier()
True
>>> b.isidentifier()
True
>>> b
'ú'
>>> a.encode() == b.encode("latin1")
True
```
For reference, here is the very source of the issue: https://github.com/python/cpython/blob/master/Lib/sre_parse.py#L228 |
|
Date |
User |
Action |
Args |
2020-06-16 19:41:48 | matpi | set | recipients:
+ matpi, malin |
2020-06-16 19:41:48 | matpi | set | messageid: <1592336508.19.0.514114656387.issue40980@roundup.psfhosted.org> |
2020-06-16 19:41:48 | matpi | link | issue40980 messages |
2020-06-16 19:41:48 | matpi | create | |
|