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.19:41:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592336508.19.0.514114656387.issue40980@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-06-16 19:41:48matpisetrecipients: + matpi, malin
2020-06-16 19:41:48matpisetmessageid: <1592336508.19.0.514114656387.issue40980@roundup.psfhosted.org>
2020-06-16 19:41:48matpilinkissue40980 messages
2020-06-16 19:41:48matpicreate