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 malin
Recipients ezio.melotti, malin, matpi, mrabarnett
Date 2020-06-16.10:30:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592303447.95.0.542484821211.issue40980@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2020-06-16 10:30:47malinsetrecipients: + malin, ezio.melotti, mrabarnett, matpi
2020-06-16 10:30:47malinsetmessageid: <1592303447.95.0.542484821211.issue40980@roundup.psfhosted.org>
2020-06-16 10:30:47malinlinkissue40980 messages
2020-06-16 10:30:47malincreate