Message371696
The problem can also be played in reverse, maybe it is more telling:
```
# consider the following bytestring pattern
>>> p = b"(?P<\xc3\xba>)"
# what character does the group name correspond to?
# maybe we can try to infer it by decoding the bytestring?
# let's try to do it with the default encoding... that natural, right?
>>> p.decode()
'(?P<ú>)'
# so we can reasonably expect the group name to be ú, right?
>>> list(re.compile(p).groupindex.keys()).pop()
'ú'
# Fail.
``` |
|
Date |
User |
Action |
Args |
2020-06-16 20:17:50 | matpi | set | recipients:
+ matpi, malin |
2020-06-16 20:17:50 | matpi | set | messageid: <1592338670.69.0.284643310652.issue40980@roundup.psfhosted.org> |
2020-06-16 20:17:50 | matpi | link | issue40980 messages |
2020-06-16 20:17:50 | matpi | create | |
|