This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author matpi
Recipients malin, matpi
Date 2020-06-16.20:17:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592338670.69.0.284643310652.issue40980@roundup.psfhosted.org>
In-reply-to
Content
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.
```
History
Date User Action Args
2020-06-16 20:17:50matpisetrecipients: + matpi, malin
2020-06-16 20:17:50matpisetmessageid: <1592338670.69.0.284643310652.issue40980@roundup.psfhosted.org>
2020-06-16 20:17:50matpilinkissue40980 messages
2020-06-16 20:17:50matpicreate